You need code that check your IP every second and change value of serverIp in protocollogin.cpp:My internet disconnects often (and IP changes), so I need a code that re-hosts OTServer when IP has changed. Is there such a code ?? Thx
uint32_t serverIp = serverIps[0].first;
for(IpList::iterator it = serverIps.begin(); it != serverIps.end(); ++it)
{
if((it->first & it->second) != (clientIp & it->second))
continue;
serverIp = it->first;
break;
}
I think he use, but when your provider change your IP server still work (site, login server), but when player login to server, he receive list of characters with wrong IP(s) of server(s) and can't connect to game.Do you use a no-ip address?
I'll write it tommorow and post in this thread.I use no-ip address.
Can someone give me full code?
I'm no good at otserv programming