G
Guest
Guest
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.
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.