Trouble chosing the network interface

Technical support for all issues relating to Defcon Linux

Moderator: Defcon moderators

Antz
level0
Posts: 5
Joined: Mon Jul 02, 2007 7:24 pm

Trouble chosing the network interface

Postby Antz » Tue Jul 03, 2007 1:59 pm

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.
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Re: Trouble chosing the network interface

Postby xander » Tue Jul 03, 2007 3:37 pm

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.

  1. 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.
  2. In "data/", find "gameoptions.txt". Open it up with any text editor that can save a plain text file. NotePad works.
  3. 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
User avatar
shinygerbil
level5
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

Postby shinygerbil » Tue Jul 03, 2007 8:57 pm

xander, there ain't no WinRAR or Notepad on them tharr Linuxes! ;)

(unrar and nano will work just fine :P )
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Re: Trouble chosing the network interface

Postby xander » Tue Jul 03, 2007 9:31 pm

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
estel
level4
level4
Posts: 690
Joined: Mon Jan 02, 2006 11:20 pm
Location: Bristol
Contact:

Postby estel » Thu Jul 05, 2007 11:51 am

vi

:evil: :evil:
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Thu Jul 05, 2007 4:08 pm

estel wrote:
vi

:evil: :evil:

What? Are you one of those evil emacs zealots?

xander
torig
level5
level5
Posts: 1251
Joined: Wed Dec 27, 2006 9:19 pm

Postby torig » Thu Jul 05, 2007 5:27 pm

xander wrote:
estel wrote:
vi

:evil: :evil:

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).
Antz
level0
Posts: 5
Joined: Mon Jul 02, 2007 7:24 pm

Postby Antz » Sat Jul 07, 2007 3:24 pm

Thanks for the tip on disabling publishing.

Now, is there any way of selecting the network interface?
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Sat Jul 07, 2007 6:04 pm

Antz wrote:Thanks for the tip on disabling publishing.

Now, is there any way of selecting the network interface?

I don't know, which is why I didn't answer that question. Sorry...

xander
User avatar
ewanm
level3
level3
Posts: 349
Joined: Sat Jan 21, 2006 8:15 pm
Location: ::1
Contact:

Postby ewanm » Sun Jul 08, 2007 2:16 pm

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.
Antz
level0
Posts: 5
Joined: Mon Jul 02, 2007 7:24 pm

Postby Antz » Fri Jul 13, 2007 1:42 pm

Do the developers read these forums? I have still not resolved the problem. If only the game could be made to prefer eth0 over the loopback interface...
User avatar
bert_the_turtle
level5
level5
Posts: 4795
Joined: Fri Oct 13, 2006 6:11 pm
Location: Cologne
Contact:

Postby bert_the_turtle » Fri Jul 13, 2007 2:07 pm

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.
torig
level5
level5
Posts: 1251
Joined: Wed Dec 27, 2006 9:19 pm

Postby torig » Fri Jul 13, 2007 3:41 pm

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...
User avatar
xander
level5
level5
Posts: 16869
Joined: Thu Oct 21, 2004 11:41 pm
Location: Highland, CA, USA
Contact:

Postby xander » Fri Jul 13, 2007 4:02 pm

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
User avatar
shinygerbil
level5
level5
Posts: 4667
Joined: Wed Dec 22, 2004 10:14 pm
Location: Out, finding my own food. Also, doing the shinyBonsai Manoeuvre(tm)
Contact:

Postby shinygerbil » Fri Jul 13, 2007 4:09 pm

if it's hosted on a LAN, then he still can't connect to it, because his Defcon client is *only* looking at the Internets. At least, that's how I interpret it.
Here is my signature. Make of it what you will.
Image

Return to “Linux Troubleshooting”

Who is online

Users browsing this forum: No registered users and 11 guests