[bf1942] bind BF2 to non-primary IP-address?

Per Kristiansen per at gathering.org
Thu Jun 16 06:54:15 EDT 2005


On Thu, Jun 16, 2005 at 03:40:18AM -0700, ScratchMonkey wrote:
> --On Thursday, June 16, 2005 12:32 PM +0200 Timo Hilbertz 
> <hilbertz at ipx-server.de> wrote:
> 
> >some people (including me) have difficulties when trying to run BF2
> >(Linux) on the non-primary IP-Address. You cannot connect if the server
> >doesn't use the first IP. Any solution for that?
> 
> I've seen a number of people use the term "non-primary". What do you mean 
> by that?
> 
> I think interfaces get named in the order they're found on the bus, but you 
> might be able to override this if they use different drivers, by naming 
> them explicitly in modules.conf.
> 
> Try using "lsof -i" to see what interface the process is actually listening 
> on. tcpdump or ethereal (packet sniffers) can also be useful for figuring 
> out what's going on.

Done that .. have a server with two ip's on.
so what I did was set the IP in the server config file (sv.serverIP)
to my "second" IP.

fired up the server.

and hey presto..when running lsof I get :
bf2_f      7781    games    3u  IPv4 136453318       UDP *:29900
bf2_f      7781    games    6u  IPv4 136453323       UDP *:41195
bf2_f      7781    games    7u  IPv4 136453327       UDP <Primary IP>:16567
bf2_f      7781    games    8u  IPv4 136453326       TCP *:4711 (LISTEN)
bf2_f      7781    games   11u  IPv4 136453401       UDP *:55124
bf2_f      7781    games   12u  IPv4 136453402       UDP *:55125

hmm.

but it SEEMS to bind to all the ip's on the server, atleast when I use nmap to scan for port 4711 
on my host i see it on both ip's

Note: One interface , 2 IP's..this might have something to do with it.


-- 
Per Kristiansen
per at gathering.org




More information about the Bf1942 mailing list