UnrealIRCD listen on changing ip? how to do it?

These are old archives. They are kept for historic purposes only.
Post Reply
zlobomir

UnrealIRCD listen on changing ip? how to do it?

Post 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
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post 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.
AngryWolf
Posts: 554
Joined: Sat Mar 06, 2004 10:53 am
Location: Hungary
Contact:

Post 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.
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post 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 ;) .
codemastr
Former UnrealIRCd head coder
Posts: 811
Joined: Sat Mar 06, 2004 8:47 pm
Location: United States
Contact:

Post by codemastr »

If I recall, * is translated to 0.0.0.0 (or ::0 for IPv6)
-- codemastr
AngryWolf
Posts: 554
Joined: Sat Mar 06, 2004 10:53 am
Location: Hungary
Contact:

Post by AngryWolf »

Yeah, that's true. [By the way, s_bsd.c, line 345: inetport()].
Post Reply