Ping Time Out.. A solution ?

Talk about pretty much anything here, but DO NOT USE FOR SUPPORT.

Moderator: Supporters

Locked
Number
Posts: 65
Joined: Thu Mar 03, 2005 6:44 pm

Ping Time Out.. A solution ?

Post by Number »

Hello everibody :-)

I have unreal on my own computer but i have a probleme ..

I don't have a static ip ..
So every 24 h (or36 i don't know) my ip was changed..

I have a program who changed my dns every 10 '' ..
But the server send a Ping all 90 '' if the ping is send just after change ip ..
The client does not know has which to return the pong ..

Do you have a solution ?
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

If your ip changes, all connections will die. This is unavoidable.
Number
Posts: 65
Joined: Thu Mar 03, 2005 6:44 pm

Post by Number »

or changed immediatly the dns..

I can't play whit the ping ? or whit the client (If the dns changed reply to the ping a second time ?

Or i don't know...
I can't send a ping more often but wait for 2 reply before have a ping time out ?

the client was not connected to my server whit my ip..
But whit a dynamic domain..
Like dyndns.org ..

Thus if i changed immediatly the ip on dyndns..
Unrealircd can receive the Pong ? (if the pong reply is more than 1 seconde :-( )
Syzop
UnrealIRCd head coder
Posts: 2112
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

Packets on the internet are sent/received by IP (source ip, destination IP), hostnames (DNS) is not used.. DNS is only used for name->ip resolving upon connecting. After that, the IP it resolved to is used during the whole connection.
Hence, updating the hostname (in DNS) does not help any of your current connections. They will keep using the old ip.

I'm in a friendly mood today I guess.
Number
Posts: 65
Joined: Thu Mar 03, 2005 6:44 pm

Post by Number »

i'm sorry i don't want to speak of dns but of course of hostname ...

i'm right when i say :
If i update my hostname the applet java say all to the new ip ..
(For example my hostname if my ip changed is updated after 1 min ..
After 1 minutes the client have a ping timeout ..
But after they can (Whitout reload the applet) rejoin the channel ..)

So if i can change hostname quickly ..
The applet java send the packets to the right ip ...

So if i can changed the Ip so quiclky than the pong was not still send ..
The client was not "deco" ??
Wiggle
Posts: 19
Joined: Sat Mar 05, 2005 11:52 pm
Location: Belgium

Post by Wiggle »

The hostname doesn't get resolved again. Syzop noted it only was resolved to an IP upon connecting, after which it is saved/cached and used.

This means that changing what the hostname resovles to has no influence, since it will still use the cached/saved IP it resolved from the original hostname that connected.

I feel like I'm just repeating what Syzop said ;).
All spelling mistakes, grammatical errors and stupid comments are intentional.
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

If your IP changes, everyone will be disconnected. This is the way the internet works. Either live with it or find a static IP. Or both even.
Locked