[ale] gateway external ip
F. Grant Robertson
f.g.robertson at alexiongroup.com
Sun Aug 3 03:17:17 EDT 2003
> I would like to get my router's external ip address
> and email it to my cell phone.
This works well for me. I didn't write it, it came from some firewall script
I once used.
However, might I suggest that it would be easier to use a dynamic dns
service, so you could have a name? I use whyi.org, but I think dyndns.org is
still around.
-G
----
internet=ppp0
[ -z "$ip" ] && EXTERNALIP=`ip addr show $internet | grep inet | sed s/"
"// | cut -d' ' -f 2 |
cut -d'/' -f1`
echo $ip
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.504 / Virus Database: 302 - Release Date: 7/24/2003
_______________________________________________
Ale mailing list
Ale at ale.org
http://www.ale.org/mailman/listinfo/ale
More information about the Ale
mailing list