Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Yet another way to get a remote IP address' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Yet another way to get a remote IP address
Authored by: tallest on Sep 13, '06 11:31:23AM
I have a linux box at home (with a dynamic IP) and some webspace at school so I just put this script in /etc/cron.hourly/ (this may be different depending on what variety of cron you use):

wget -O /root/ip -q

if [[ -e /root/ip ]]; then
        scp /root/ip  
Note that you will need to have root be able to scp to the other machine without requiring a password (rsa or dsa authentication). I also set it up so that the site at school is password protected so not just anyone can look at my home IP.

[ Reply to This | # ]