Page 1 of 1

UnrealIRCD listen on changing ip? how to do it?

Posted: Sat Apr 10, 2004 7:14 pm
by zlobomir
my internet ip is dynamic so i have to change it in the listen section every time i connect ...

is there a way to listen on all ip-s or something like this ?
like
listen *:6667 ?

EDIT:
it doesn`t work with the *
or i don`t do it right

Posted: Sat Apr 10, 2004 8:00 pm
by aquanight
The IP address in the listen line specifies an address that Unreal will bind to for listening. Generally, * should work, which will let the OS choose an appropriate address, but if you are on a shared server, you should use the IP address assigned to it to avoid conflicts with other IRCds running on the same server.

If Unreal is not accepting your IP address, this is a problem with your allow {} blocks; listen has nothing to do with it. Also check your ban blocks and any TKL bans.

Posted: Sat Apr 10, 2004 9:04 pm
by AngryWolf
Just a minor correction for aquanight's reply, *:6667 makes Unreal to bind a socket to all network interfaces on port 6667. This includes 127.0.0.1 (the loopback device, localhost) and every other IP addresses the OS have.

Posted: Sun Apr 11, 2004 4:48 pm
by aquanight
AngryWolf wrote:*:6667 makes Unreal to bind a socket to all network interfaces on port 6667.
Ah right :oops: , I was probably thinking of what happens when you bind to 0.0.0.0 which does what I said above.

So that's all the more reason to not use listen * on a shared server ;) .

Posted: Sun Apr 11, 2004 6:07 pm
by codemastr
If I recall, * is translated to 0.0.0.0 (or ::0 for IPv6)

Posted: Sun Apr 11, 2004 9:16 pm
by AngryWolf
Yeah, that's true. [By the way, s_bsd.c, line 345: inetport()].