 |
 |
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
|
 |
 |
| Author |
Message |
Barbeirosa
Joined: 01 Feb 2007 Posts: 43
|
Posted: Sun Apr 01, 2007 11:13 am Post subject: |
|
|
Obviously, his router is configured to forward the port, otherwise people would -never- be able to connect to his server. He says that it only happens once his IP changes.
I happen to know the answer to this question, though. When POL starts up, it resolves your servers.cfg entry to the IP address. The Server List packet it sends out to clients does NOT accept a host name. So POL has to resolve the name to an IP and it sends the IP to the clients.
But POL has a bug with this. Once it resolve the IP, it never seems to check it again. If you restart your POL server after an IP change, you'll notice it magically works again, because POL again re-checks the host name to get the current IP.
Beyond restarting POL every time your IP changes, there's only one other way around this. Well, two. Three, actually...
First, bug the POL devs to make POL re-check host names entered in servers.cfg and resolve them to their current IP periodically.
Second, and the best option by far: Stop hosting POL on a dynamic IP connection.
Third, use a packet hook on the server list packet to get POL to send out the real, current IP, and not what it resolved at startup. You'd have to run some external program to periodically get the current IP and have it connect to an AUX or WWW script on POL. That AUX or WWW script would have to set the IP it gets to a Global property, which the server list packet hook would use to send to clients. |
|
 |
|
|
 |
 |
|