My mom uses SaskTel's HighSpeed service, so it too has a dynamic external IP address. Because I occasionally help her over the phone, I've set up vnc.
That left me with the issue of not knowing what her IP address is. So I wrote a quick java program to go out to http://www.accesscomm.ca/whatip.php and parses the results. It then then emails me if the address is different from last time. The ip address it gets is 'remembered' in a text file. This seems very similar to what you need. One of the differences is what you want to do with the info when the program determines that it has changed. My mom's PC is (sorry, gotta say it) Windows, so we didn't have utilities like lynx and bash to do it more simply in scripting. I had to revert to a program. Assuming you can run some kind of *nix script on the machine in question, I'd recommend that. I also have a script I wrote to monitor a web-site for something, and then email me when it notices something particular. You could probably start with that if it helps. driving an ftp session from script is quite easy. It's all do-able. If you want any code, script, or if you want to know more about my way of doing it, just ask. Don Brown On November 12, 2002 11:52 am, Andrew Rendle wrote: > Dear All > > I have a server with 1mBit Broadband connection that unfortunately has a > DHCP allocated IP address on which I wish to host my JBoss installation. > > I also have a free website that could be redirected to my IP address. > > I have come up with a scheme but I don't know how to do it, as follows: > > When JBoss starts up it inspects the IP addresses that it is listening on > and creates a file/page which it then FTP's to the free web site to form > the redirection back to the JBoss server. I expect to only send the new > page when the servers IP address changes which will probably only happen on > a server reboot. > > Sounds easy if you say it quickly!!! Has anybody attempted to do such a > thing? Can you help? > > Regards > > Andy Rendle > > > > > > ____________________________________________________ > To change your JDJList options, please visit: > http://www.sys-con.com/java/list.cfm > > Be respectful! Clean up your posts before replying > ____________________________________________________ ____________________________________________________ To change your JDJList options, please visit: http://www.sys-con.com/java/list.cfm Be respectful! Clean up your posts before replying ____________________________________________________
