Determining Internet IP from behind firewall
Hi all. I am trying to figure out how to determine my router's "internet ip" address which it is assigned from my broadband provider.
To my local machine, it's IP is of course 192.168.1.1, but is there a way to determine the LAN's internet IP? I know that I can log into the router with a web browser to grab the information, but the reason I am doing this is to write a script which will notify me by email when my IP address has changed while I am away from home, so I can still login to my server. Of course, the first solution which came to my mind was script which used the built in router http interface... but I don't know how the login/pasw info is passed to the router. Any suggestions? Belorion |
Try:
lynx -dump http://www.whatismyip.com | grep "Your IP is" |
if you mean what is the IP given to you by your ISP, try something like www.whatismyip.com or http://www.danasoft.com/
otherwise, i'm not really clear on what you're asking. >edit: i just tried that lynx maneuver -- that is too slick. :D i've got to learn more about grepping and doing cool stuff like that from the command line. any pointers? :cool: |
synaptical, just check up the man pages. It's a good idea to do it bit by it. Don't try to write the whole command at once, write one part, test it, then pipe it into something else. Then at the end you can rationalise it a bit if needed.
|
All times are GMT -5. The time now is 01:11 AM. |