I searched through the mail archive and couldnt find anything that matched this problem so I hope someone can help me out there.
 
I wrote a quick java program to get the localhost ip number.  I wanted to use that to write and html document and ftp it to my directory on my internet provider's server to link back to my linux box.  Anyway I am connected to a cable modem service so I am connected pretty much all the time.  However if they detect a period of inactivity they change your dynamically assigned IP.  When I use the "gethostaddress()" I get the ip number that was origanily assigned not the new one.  Now yes I could play games and send some ping or check mail periodically that should keep the connection live, but it bothers me that java is returning what is technically not the correct number.  Any ideas?
 
 

Reply via email to