I asked if there is something like this because... when I reboot or something .. then my IP is different then before.. and the config file will be configed wrong.
if there isnt something like this. Then I recommend making one
I needed to type "120.232.23.22" but .. what if the comp got rebooted and the ip changed to "120.232.24.168" then connecting to "blabla.unreal.com" wont work nomore.
Putting the computers IP in a variable will not work. If there are more than 1 interface on a computer (such as a shell), how will Unreal know what IP to put in this variable? The only way I can think of is to bind to all the IP's that it can find and see which ones it can access, but that just doesnt make any sense. And if you were to do that, what would happen if there is more than 1 IP that Unreal can bind to?
There are just too many problems that such a feature can cause. Something like this just wont be done.
Everyone who replied here miss an important thing. Let's say, your IP address is 1.2.3.4. You type listen 1.2.3.4:6667; in your conf. Your IP then changes to 5.6.7.8. Because Unreal doesn't listen on 5.6.7.8:6667, you can't connect to the server anymore. You lose all clients connected to the server. You must update your listen block. or they won't be able to reconnect. So you need an automatic update of the configuration file everytime the IP changes (and a /rehash is required as well, of course).
AngryWolf I didnt miss the point I just a similary config.
I have dynamic IP and from reading the doc I came to the conclusion that its was better to as aquanight says to listen to *:port then to each time I get a new IP go in a change that, not fun to find out the server was down just becuase of a IP change. To have a static way to get to the server i got myself a DNS name and then I use dyndns to keep the DNS name poiting to my IP that is dynamic. So far its been working very well.
I think that this is a better way then to have a variable in the config file to pull the IP in.
If you had that then you would need a mechanism to detect in the IRCd server when the server gets a new IP and then pull the new IP into the config file and then rehash it automaticly.