Trouble chosing the network interface
Moderator: Defcon moderators
Trouble chosing the network interface
I am trying to host a LAN game, but Defcon insists on using eth1, which is my interface to the Internet, and not my LAN interface.
If I disable eth1 Defcon proceeds to listen on lo, and still does not listen on eth0.
How can I specify the network device Defcon uses to host/join games?
I would also like to disable publishing the game on the Internet by default, so that people do not join between me starting to host the game and me disabling "advertise on the Internet", forcing me to kick them.
If I disable eth1 Defcon proceeds to listen on lo, and still does not listen on eth0.
How can I specify the network device Defcon uses to host/join games?
I would also like to disable publishing the game on the Internet by default, so that people do not join between me starting to host the game and me disabling "advertise on the Internet", forcing me to kick them.
Re: Trouble chosing the network interface
Antz wrote:I would also like to disable publishing the game on the Internet by default, so that people do not join between me starting to host the game and me disabling "advertise on the Internet", forcing me to kick them.
- Find main.dat, and extract it (it is a .rar file, which can be extracted using something like WinRAR). A new directory, called "data/", should now be present in your Defcon directory.
- In "data/", find "gameoptions.txt". Open it up with any text editor that can save a plain text file. NotePad works.
- Find this line:
Code: Select all
AdvertiseOnInternet 0 1 1 0
and change it to:Code: Select all
AdvertiseOnInternet 0 1 0 0
That should do it. Defcon should first look for data in main.dat, which should still be in place, then in data/, then in active mod directories. Settings in data/ will overwrite settings in main.dat. So, by having an altered gameoptions file in data/, the settings there should be used. Let me know if it doesn't.
xander
- shinygerbil
- level5
- Posts: 4667
- Joined: Wed Dec 22, 2004 10:14 pm
- Location: Out, finding my own food. Also, doing the shinyBonsai Manoeuvre(tm)
- Contact:
Re: Trouble chosing the network interface
xander, there ain't no WinRAR or Notepad on them tharr Linuxes!
(unrar and nano will work just fine )
(unrar and nano will work just fine )
Re: Trouble chosing the network interface
shinygerbil wrote:xander, there ain't no WinRAR or Notepad on them tharr Linuxes! ;)
(unrar and nano will work just fine :P )
That's what I get for hitting the show new posts button -- I didn't have any idea what subforum this was posted in. ;)
Let me correct my above post: use unrar and vi. ;)
xander
xander wrote:estel wrote:vi
What? Are you one of those evil emacs zealots?
xander
Argh. I hate the emacs OS. Their word processor is shite, too.
Estel notice vi is not vim. Vim is a lot more userfriendly then the original vi.
If you've never tried it, give vim a try (it gets symlinked to vi after installation btw).
Actually most linux distros install vim by default and symlink it, vi itself is seldom found. I tried emacs once and couldn't work out how to quit it so I us Vim.
Geek by Nature, Linux by Choice
68 74 74 70 3A 2F 2F 65 77 61 6E 6D 38 39 2E 63 6F 2E 75 6B 2F 0D 0A
68 74 74 70 3A 2F 2F 65 77 61 6E 6D 38 39 2E 63 6F 2E 75 6B 2F 0D 0A
- bert_the_turtle
- level5
- Posts: 4795
- Joined: Fri Oct 13, 2006 6:11 pm
- Location: Cologne
- Contact:
You could try the latest DedCon release, it will by default listen on all network ports, but in case of trouble, 0.7 now can be bound to listen on a specific IP (via the ServerIP setting).
http://moosnet.homelinux.net/dedcon/
I don't really know what method Defcon uses to initialize its networking ports, so sorry, I can't help you there.
http://moosnet.homelinux.net/dedcon/
I don't really know what method Defcon uses to initialize its networking ports, so sorry, I can't help you there.
bert_the_turtle wrote:You could try the latest DedCon release, it will by default listen on all network ports, but in case of trouble, 0.7 now can be bound to listen on a specific IP (via the ServerIP setting).
http://moosnet.homelinux.net/dedcon/
I don't really know what method Defcon uses to initialize its networking ports, so sorry, I can't help you there.
Actually the problem wouldn't be solved. At least not for the original poster being able to _play_ the game.
Hosting is fun, but hosting and playing equals to more fun
What if you simply "ifdown lo" ? If it's down, it should not be used...
torig wrote:bert_the_turtle wrote:You could try the latest DedCon release, it will by default listen on all network ports, but in case of trouble, 0.7 now can be bound to listen on a specific IP (via the ServerIP setting).
http://moosnet.homelinux.net/dedcon/
I don't really know what method Defcon uses to initialize its networking ports, so sorry, I can't help you there.
Actually the problem wouldn't be solved. At least not for the original poster being able to _play_ the game.
Hosting is fun, but hosting and playing equals to more fun :D
What if you simply "ifdown lo" ? If it's down, it should not be used...
But if he can host a server, he can join that server. That, I believe, was the point.
xander
- shinygerbil
- level5
- Posts: 4667
- Joined: Wed Dec 22, 2004 10:14 pm
- Location: Out, finding my own food. Also, doing the shinyBonsai Manoeuvre(tm)
- Contact:
Who is online
Users browsing this forum: No registered users and 9 guests