This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Sockets and Internet Protocols and the fly likes Dynamic Server IP.  How would I change the client to connect to it? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "Dynamic Server IP.  How would I change the client to connect to it?" Watch "Dynamic Server IP.  How would I change the client to connect to it?" New topic
Author

Dynamic Server IP. How would I change the client to connect to it?

john price
Ranch Hand

Joined: Feb 24, 2011
Posts: 495

My router's IP address is dynamic. How would I set up my chat clients to work when my router IP changes?
For example: If dynamic IP for router is 128.128.128.128, and my router changes IP address, how would I get the client to connect with the server?
Is this even possible?
Thanks,
John Price aka cc11rocks


“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” (Mosher's Law of Software Engineering)
“If debugging is the process of removing bugs, then programming must be the process of putting them in.” (Edsger Dijkstra)
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19651
    
  18

There are sites where you can register to get a sub domain name that you can update regularly. Some firewalls / routers even have built-in support for them.

I just checked mine and it supports the following which you can check out for yourself:
- DynDNS.org
- changeip.com
- No-IP.com
- yi.org


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
Consider Paul's rocket mass heater.
 
subject: Dynamic Server IP. How would I change the client to connect to it?
 
Similar Threads
how to send messages from server to client initiatively?
DSL and IP address
naive server ip connection question
J2se server and J2me client
Executing Netbeans 3.6 web application from another pc