PenUltima Online

It is currently Thu Aug 28, 2008 8:14 pm

All times are UTC - 8 hours




Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2  Next
Author Message
 Post subject:
PostPosted: Sun Apr 01, 2007 9:44 pm 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 834
Location: Indiana, USA
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)

_________________
POL Developer - The Penguin Scripter


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 01, 2007 9:51 pm 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 834
Location: Indiana, USA
Oh yeah, and what OS is this on mate?

_________________
POL Developer - The Penguin Scripter


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 01, 2007 10:31 pm 
Online

Joined: Sat Feb 04, 2006 6:26 pm
Posts: 538
All the tests were on Win32 version of the core.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 02, 2007 3:47 am 
Offline

Joined: Fri Feb 10, 2006 10:06 am
Posts: 79
Location: Italy
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.

_________________
Zandor


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 02, 2007 5:56 pm 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 834
Location: Indiana, USA
How about I find out the OS like I asked last night? Will definitely help here :)

_________________
POL Developer - The Penguin Scripter


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 02, 2007 10:02 pm 
Offline

Joined: Fri Feb 10, 2006 10:06 am
Posts: 79
Location: Italy
I use XP PRO SP2

_________________
Zandor


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 02, 2007 10:07 pm 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 834
Location: Indiana, USA
kk, gives me a little more to go on. May have found a linux bug besides yours :)

_________________
POL Developer - The Penguin Scripter


Top
 Profile  
 
 Post subject:
PostPosted: Tue Apr 03, 2007 8:11 am 
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;
   }
}


Top
  
 
 Post subject:
PostPosted: Tue Apr 03, 2007 9:53 pm 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 834
Location: Indiana, USA
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?

_________________
POL Developer - The Penguin Scripter


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 04, 2007 9:58 am 
Offline

Joined: Fri Feb 10, 2006 10:06 am
Posts: 79
Location: Italy
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?

_________________
Zandor


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 04, 2007 10:41 am 
Offline
POL Developer
User avatar

Joined: Sun Feb 12, 2006 9:50 pm
Posts: 834
Location: Indiana, USA
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.

_________________
POL Developer - The Penguin Scripter


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 06, 2007 2:31 am 
Offline

Joined: Fri Feb 10, 2006 10:06 am
Posts: 79
Location: Italy
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...

_________________
Zandor


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 07, 2007 4:53 am 
Offline

Joined: Fri Feb 10, 2006 10:06 am
Posts: 79
Location: Italy
Thanks for alla for patience.

_________________
Zandor


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 28 posts ]  Go to page 1, 2  Next

All times are UTC - 8 hours


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
Style based on FI Subice by phpBBservice.nl