[Techtalk] Discovering my IP address
Carla Schroder
carla at bratgrrl.com
Sun Mar 14 20:53:18 EST 2004
On Sunday 14 March 2004 7:43 pm, John Clarke wrote:
> > I don't have a static IP address, but I have just discovered that I need
to
> > know my IP address for an application for uni.
> >
> > Does anyone know how to find out what it is?
>
> /sbin/ifconfig eth1|awk '$0 ~ /inet addr:/ {sub(/addr:/,"",$2); print $2}'
>
Anyone care to contribute a nice 50-line Perl script to do the same thing?
:)
--
~~~~~~~~~~~~~~~~~~~~~~~~~
Carla Schroder
www.tuxcomputing.com
this message brought to you
by Libranet 2.8 and Kmail
~~~~~~~~~~~~~~~~~~~~~~~~~
More information about the Techtalk
mailing list