1 (edited by mcgoo 2008-02-28 17:45:23)

Topic: bind server to an ip not working on unix ?

i´m running a dedicated teewars server on a debian server with 6 ip´s. i tried to bind that server with the entry:

sv_bindaddr=***.***.***.*** (ip in there)

in my .cfg.

the port is defenenty opened, but it doesn´t work.

when i open the port for the whole server iinstead of the single ip, it works. but would be nicer if i could open that port for a single ip only ?

any tips ?

greets
mcgoo

2 (edited by dreamW 2008-03-19 12:51:44)

Re: bind server to an ip not working on unix ?

OS: freeBSD 6.1, TeeWars Server version 0.3.4
my solution for this problem:

in server sources, file:

src/engine/server/es_server.c

before line:
net = netserver_open(bindaddr, config.sv_max_clients, 0);

add:
bindaddr.ip[0]=193;
bindaddr.ip[1]=108;
bindaddr.ip[2]=251;
bindaddr.ip[3]=240;
(for desired address 193.108.251.240)

after, build teewars server. It`s work (this is not correct decision, but worked hmm ).

PS: i`m not programmer, but i think, sv_bindaddr not processed to use in bindaddr struct, just check for correct. I hope, in new release it fixed.

PPS: sooorry my english smile