[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[ale] gateway external ip
- Subject: [ale] gateway external ip
- From: f.g.robertson at alexiongroup.com (F. Grant Robertson)
- Date: Sun, 3 Aug 2003 03:17:17 -0400
> 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