[issue898] alias to get public IP behind NAT

gregor perner bts at bts.grml.org
Sun Aug 22 18:48:07 CEST 2010


New submission from gregor perner <gregor at perners.at>:

A one-liner which would get the current IP of that box you are NATed through:
wget -q -O - checkip.dyndns.org|sed -e 's/.*Current IP Address: //' -e
's/<.*$//' [1]

i'm not sure where that fits best, but IMO a shell-alias should suffice.

[1] some alternatives:
http://www.go2linux.org/what-is-my-public-ip-address-with-linux

----------
messages: 3335
nosy: grulli
priority: feature
status: unread
title: alias to get public IP behind NAT

_____________________________________
GRML issue tracker <bts at bts.grml.org>
<http://bts.grml.org/grml/issue898>
_____________________________________


More information about the Bugs-changes mailing list