Linux IP/Port Config Help

Shack70

Platinum Member
Apr 19, 2000
2,152
0
76
I current'y rent a CentOS box and I have 5 IP address assigned to it. I am hosting games off the box for a gaming group I belong to. I can't seem to get the OS to let me use more than one IP at a time.

If i run a CS server on port 27015 (default) then install a second server on a different IP and port 2705, the 2nd game server tells me the port is being used. I've done this on Windows 2003 with no problem. How do I get it to work in Linux?

Thanks for any help in advance!
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Are all 5 IPs assigned to your network card? Do you specify a different IP for the second game server? Did you check the ports available with netstat -an?
 

Sunner

Elite Member
Oct 9, 1999
11,641
0
76
Make sure the server binds to the proper interface.
I have no clue how this would be done with the CS server, but there should be some configuration directive for binding to either an interface or an address:port.
 

Shack70

Platinum Member
Apr 19, 2000
2,152
0
76
Originally posted by: n0cmonkey
Are all 5 IPs assigned to your network card? Do you specify a different IP for the second game server? Did you check the ports available with netstat -an?


I assume they are all bound as I can use any of the IPs to connect to the game server.

If i assign xxx.xxx.xxx.001 to the game server in the startup command line, I can still connect to it using xxx.xxx.xxx.002
 

silverpig

Lifer
Jul 29, 2001
27,703
12
81
Why don't you just use the same IP and different ports? I've connected to many a server where I can connect to cs.server.of.fun.com:27015 or cs.server.of.fun.com:27016. Same machine, different ports.
 

n0cmonkey

Elite Member
Jun 10, 2001
42,936
1
0
Originally posted by: BlackFlagg
Originally posted by: n0cmonkey
Are all 5 IPs assigned to your network card? Do you specify a different IP for the second game server? Did you check the ports available with netstat -an?


I assume they are all bound as I can use any of the IPs to connect to the game server.

If i assign xxx.xxx.xxx.001 to the game server in the startup command line, I can still connect to it using xxx.xxx.xxx.002

Then the game server is binding to all IPs instead of restricting it to the one you assigned it to. Check the configs and the server logs.
 

Shack70

Platinum Member
Apr 19, 2000
2,152
0
76
Originally posted by: silverpig
Why don't you just use the same IP and different ports? I've connected to many a server where I can connect to cs.server.of.fun.com:27015 or cs.server.of.fun.com:27016. Same machine, different ports.

Because I have 5 Ips I can use, why deviate from standard port if I dont have to?

Then the game server is binding to all IPs instead of restricting it to the one you assigned it to. Check the configs and the server logs.

The server logs or the game server logs?