PenUltima Online Forum Index Official Core: 096.7
Official Core: 097 2008-02-26
Donate towards the POL web hosting bill!
 POL Home   FAQ   Search    Memberlist   Usergroups    Register    Profile   Log in to check your private messages   Log in
POL on server with non static IP
Goto page Previous  1, 2
 
Post new topic   Reply to topic    PenUltima Online Forum Index -> Feature Suggestions
Display posts from previous:   

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Mon Apr 02, 2007 1:44 am    Post subject: Reply with quote

Ok, you say they can't connect.

Few things here to try to for me, and please give me the results (since it's worked for me in the past, i thought).

Can they connect at all? do they pass login, but just can't connect to selected server?

Try flushing your DNS when this happens on the server pc, and then re=register it (with POL running).

Win2k and up
Code:
ipconfig /flushdns
ipconfig /registerdns


after doing this, and that host pc verifies it pings the new address, does that make a difference?

And btw, I think they won't make a difference, as I typed this I looked at the code and it appears it doesn't refresh the IP (but only glanced)

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Mon Apr 02, 2007 1:51 am    Post subject: Reply with quote

Oh yeah, and what OS is this on mate?

Author Message
OldnGrey



Joined: 04 Feb 2006
Posts: 520

PostPosted: Mon Apr 02, 2007 2:31 am    Post subject: Reply with quote

All the tests were on Win32 version of the core.

Author Message
zandor70



Joined: 10 Feb 2006
Posts: 79
Location: Italy

PostPosted: Mon Apr 02, 2007 7:47 am    Post subject: Reply with quote

If I restart pol I think it is ok.
The problem is only that when I go work and are away from home if IP changes I cant't allow developer to interter in server for design of a new map.

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Mon Apr 02, 2007 9:56 pm    Post subject: Reply with quote

How about I find out the OS like I asked last night? Will definitely help here Smile

Author Message
zandor70



Joined: 10 Feb 2006
Posts: 79
Location: Italy

PostPosted: Tue Apr 03, 2007 2:02 am    Post subject: Reply with quote

I use XP PRO SP2

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Tue Apr 03, 2007 2:07 am    Post subject: Reply with quote

kk, gives me a little more to go on. May have found a linux bug besides yours Smile

Author Message
Barbeirosa



Joined: 01 Feb 2007
Posts: 43

PostPosted: Tue Apr 03, 2007 12:11 pm    Post subject: Reply with quote

The behavior is also the same on Windows 2000 Advanced Server, although Windows itself does not seem to be the cause. Other programs running on the same machine at the same time do get the updated IP address.

Here's pseudo-code of the entry point of the program I use to check for an IP change on my building shard.

Code:

int main(){
   try{
      char oldIP[16];
      char newIP[16];
      char hostName[11] = "my.url.com";

      oldIP = getOldIPFromPersistentStorage();  //such as Windows Registry, file stream, etc.
      newIP = resolveHostName(hostName);
      
      if (strcmp(oldIP, newIP)){
         cout << "IP Changed: " << newIP << endl;
         sendNewIPToPOLAux(newIP);  //WWW script works, too.
         saveNewIPToPersistentStorage(newIP);
      }else{
         cout << "No IP Change.\n";
      }
      cout << "Done";
      return 0;
   }catch (char* error){
      cout << "Error: " << error;
      return 1;
   }
}

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Wed Apr 04, 2007 1:53 am    Post subject: Reply with quote

zandor, do me a few favors. I just tested with dyndns.org, and when i tried to login, it gave correct IP. I them manually changed the IP from their site, tried again, and sent the client the different ip (Used UOLog to see the packets).

So it worked just fine for me. Can you give me more info?

Manually change the IP With POL running. Do a "tracert <dyndns name>" from the command prompt. Soon as you see the ip no longer takes only 1 hop (to your router), and keeps going to try to reach the new ip, try to log into POL again. Does it send the new ip, or the old for the server screen?

Author Message
zandor70



Joined: 10 Feb 2006
Posts: 79
Location: Italy

PostPosted: Wed Apr 04, 2007 1:58 pm    Post subject: Reply with quote

I have a question:
In my hosts cfg at
c:\windows\system32\drivers\etc\hosts
I have the row:
192.168.1.2 zandorhome.homeip.net

It is correct?

I do the tracert from my pc:
Code:

C:\windows\system32>tracert zandorhome.homeip.net

Rilevazione instradamento verso zandorhome.homeip.net [192.168.1.2]
su un massimo di 30 punti di passaggio:

  1    <1 ms    <1 ms    <1 ms  zandorhome.homeip.net [192.168.1.2]


and from another pc in vnc section:
Code:

C:\Documents and Settings\zulu1>tracert zandorhome.homeip.net

Rilevazione instradamento verso zandorhome.homeip.net [151.65.255.212]
su un massimo di 30 punti di passaggio:

  1   <10 ms   <10 ms   <10 ms  89-186-67-129.hostpool.ip.kpnqwest.it [89.186.67
.129]
  2   <10 ms     1 ms   <10 ms  CS1-Ge2-3-CAL2.MLA.kpnqwest.it [195.43.160.153]

  3   <10 ms   <10 ms   <10 ms  CR1-Ge5-7-CAL2.MLA.kpnqwest.it [195.43.160.177]

  4   <10 ms   <10 ms   <10 ms  CR2-Ge5-8-CAL2.MLA.kpnqwest.it [195.43.160.174]

  5     1 ms     2 ms     2 ms  R2-Ge3-0-CAL1.MLA.kpnqwest.it [195.43.160.41]
  6   <10 ms   <10 ms   <10 ms  wind2.mix-it.net [217.29.68.9]
  7    15 ms    13 ms    13 ms  151.6.1.49
  8    20 ms    20 ms    19 ms  151.6.4.94
  9    20 ms    20 ms    20 ms  151.7.22.78
 10     *        *        *     Richiesta scaduta.
 11    28 ms    28 ms    28 ms  151.65.255.212

Rilevazione completata.



At momenti my ip is 151.65.255.212

What I must do? manualli change my ip in web pages of dyndns?

Author Message
MuadDib
POL Developer


Joined: 13 Feb 2006
Posts: 830
Location: Indiana, USA

PostPosted: Wed Apr 04, 2007 2:41 pm    Post subject: Reply with quote

Uhm. Don't touch that host file!

You have it all pointing to the local LAN address of that PC, instead of your internet address. That's one problem.

Author Message
zandor70



Joined: 10 Feb 2006
Posts: 79
Location: Italy

PostPosted: Fri Apr 06, 2007 6:31 am    Post subject: Reply with quote

Infact now I have put domain zandorhome.homeip.net in IP in servers.cfg and removed fomain line in hosts and POL seem to resolve zandorhome.homeip.it correctly....

I think POL was ok and my hosts did the the problem.

I know this is MY error, but I can only suggest in servers.cfg manual to specify that if domain is used to NOT to insert domain in horst...

Author Message
zandor70



Joined: 10 Feb 2006
Posts: 79
Location: Italy

PostPosted: Sat Apr 07, 2007 8:53 am    Post subject: Reply with quote

Thanks for alla for patience.

Post new topic   Reply to topic    PenUltima Online Forum Index -> Feature Suggestions All times are GMT - 4 Hours
Goto page Previous  1, 2
Page 2 of 2

 




Powered by phpBB © 2001, 2005 phpBB Group :: Theme & Graphics by GHS & Scott E. Royalty