|
Posted by Toby A Inkster on 09/29/48 12:00
The Natural Philosopher wrote:
> Toby A Inkster wrote:
>
>> Only if they use NAT.
>
> Look at the title of this post, numbskull. "Finding out IP Address
> behind NAT"
Yeah, I only noticed the title of the thread after posting. The body of
the OP's message didn't mention NAT at all.
Nonetheless the technique which you snipped is fairly useful for people
who need to determine the IP address of a machine where NAT is not a
consideration:
/sbin/ifconfig eth0 | grep -o "inet addr:[0-9\.]*" | sed 's/[^0-9\.]//g'
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.17.14-mm-desktop-9mdvsmp, up 17 days, 23:28.]
Gnocchi all'Amatriciana al Forno
http://tobyinkster.co.uk/blog/2008/01/15/gnocchi-allamatriciana/
Navigation:
[Reply to this message]
|