RUNNING WITH RIFLES
http://www.runningwithrifles.com/phpBB3/

Bind server to a specific IP address
http://www.runningwithrifles.com/phpBB3/viewtopic.php?f=5&t=1771
Page 1 of 1

Author:  spacepope [ Sat Jun 14, 2014 8:26 pm ]
Post subject:  Bind server to a specific IP address

Hello,
Is it currently possible to bind the dedicated server (on Linux) to a specific IP address? The host in question is multihomed and I'd like to avoid having the server run on all interfaces, respectively the primary IP address. The server binary seems to have a 'server_address' variable and I've tried setting it but at the moment it doesn't seem to have any effect. It would be great if you could add this option.

Author:  pasik [ Sun Jun 15, 2014 1:09 pm ]
Post subject:  Re: Bind server to a specific IP address

I'm not too familiar with the stuff involved in such case; is it only a matter of getting the serverlist to show a different IP for the clients to use than the one picked from the caller adding the server to the list?

If it's just that, then yea, that should be easy to add, like a redirect kind of thing.

The server_address field you found is used with the server being able to do a connection test with another server.

Author:  spacepope [ Sun Jun 15, 2014 1:32 pm ]
Post subject:  Re: Bind server to a specific IP address

I see. No, I really meant being able to only listen on one specific IP address. Currently the rwr_server is binding to 0.0.0.0 which means any available IPv4 address on the system. So if my server had the addresses 1.2.3.4 and 5.6.7.8 I would be able to connect on 1.2.3.4:1234 and 5.6.7.8:1234. I just want it to be 5.6.7.8:1234. And of course just that on should show up on the server list.

Author:  rwruser001 [ Mon Jul 14, 2014 2:35 pm ]
Post subject:  Re: Bind server to a specific IP address

you can run more server, all running in their own /home with one ip. you have to seperate them by their used port.
to bind them at a specific IP adress.. i think iptables would be your tool of choice.
http://www.netfilter.org/projects/iptables/index.html

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/