Click to See Complete Forum and Search --> : IP adress, where?


sixfeetsix
09-20-2001, 07:22 PM
I am connected to the internet with adsl with dynamic IP adress.

I'd just like to know how to get my IP adress
at the moment

Thanx in advance

[ 20 September 2001: Message edited by: sixfeetsix ]

element-x
09-20-2001, 07:29 PM
$ hostname -i
$ ifconfig eth0
$ ifconfig ppp0

I'm not sure if the first one _will_ work, and because I'm not sure how dsl works (which interface) in linux, one of the 2nd two commands should absolutely work

sixfeetsix
09-20-2001, 07:33 PM
Thanks alot for that quick answer JAdrock
:p

element-x
09-20-2001, 11:12 PM
Anytime :D

xh3g
09-24-2001, 12:08 AM
ifconfig eth0 | grep 'inet addr' | cut -c 21-35

;)