Tom's Hardware > Forum > Linux/Free BSD > Linux/Free BSD General Discussion > Figure out dynamic WAN IP Address remotely and...

Figure out dynamic WAN IP Address remotely and...

Forum Linux/Free BSD : Linux/Free BSD General Discussion - Figure out dynamic WAN IP Address remotely and...

Tom's Hardware: Over 1.4 million members in 6 different countries available to answer all your high-tech questions. Sign up now! Its free!
Word :    Username :           
 

Hello,

I have a dynamic IP address assigned to my Netgear Router. Behind the router I have a Win 2000 box and a Linux Box. I have done numerous searches and have found a few things:
-there are utilities that will post your address to a web/ftp server (not ideal since I don't want the world to know what my IP address is)
-you can schedule a job (in *nix) through cron (which I'm not very familiar with)
Some of the snippets of commands that I have found to do this are:

#I believe this one sends my local IP address
ifconfig eth0 | grep 'inet addr' | awk -F:'{print $2}'|mail -s address your@email

#This one begins to look at the route and grabs the first hop (I think?)
route | grep default | awk '{print $2}'

I would like help constructing a command that would simply email my WAN (router) IP address to an account every hour or so.

Also, if there is a better way to achieve the same results, please inform me. Possibly a way to do this through my Netgear FR314? I am ultimately looking for a way to find my current IP address from a remote location (preferably via email if it changes) either through a Win 2000 or Linux solution.

In addition, I am looking for the best solution to gain remote access to both of my machines from different platforms. I may need to gain access to either box from a Linux or Windows environment.

Any help is greatly appreciated. Thank you for your time.

Sponsored Links
Register or log in to remove.
Tom's Hardware > Forum > Linux/Free BSD > Linux/Free BSD General Discussion > Figure out dynamic WAN IP Address remotely and...
Go to:

There are 1092 identified and unidentified users. To see the list of identified users, Click here.

Please mind

You are about to answer a thread that has been inactive for more than 6 months.
If you still wish to proceed, please ensure that your posting is original and does not duplicate or overlap any prior responses to this thread.

Add a reply Cancel
Sponsored links
  • Ask the community now
  • Publish
Ad
They won a badge
Join us in greeting them