what is my IP? 

Newsgroups:  gmane.linux.debian.user
Date:        Sat, 29 Jan 2005 08:14:49 -0600
> I have a dynamic IP-adress, and have been using p2p clients to retrive my
> owm IP adresse when I need it. Is there another, easier way to do this?
/sbin/ifconfig eth0
/sbin/ifconfig eth0 | grep 'inet addr'

Ron Johnson

what is my IP? 

> > browse to http://checkip.dyndns.org[]
> What does dyndns.org have to do with this?
>
> All he said is, "dynamic IP-adress", not, "I use dyndns.org."

It's just a facility they provide. It's a php script that returns your current IP. It's got nothing to do with whether or not you USE dyndns, it's just a facility they provide.

Hamster

what is my IP? 

> Well, ok, but why look elsewhere when the same information is
> already on your own computer?

Because many of us live behind NAT. Thus, this information is not already on the computer.

$ /sbin/ifconfig eth0 | grep 'inet addr'
           inet addr:192.168.2.3  Bcast:192.168.2.255  Mask:255.255.255.0
$ lynx -dump http://checkip.dyndns.org
Current IP Address: 67.39.12.92

The 192.168 is non-routable and, as you well know, useless for anything outside of my private subnet. I figured since the OP mentioned using a P2P client to retrieve his IP address, he wanted the publicly routable address.

Roberto Sanchez

what is my IP? 

> Is there another, easier way to do this?
lynx -dump whatismyip.org

or try this stupid line:

/sbin/ifconfig |egrep -A1  Point-to-Point|egrep '(inet addr:)'|  \
sed -n '1p'|gawk '{print  $2}'|cut -c6-22

Gerhard GauBling

what is my IP? 

$ lynx -dump http://checkip.dyndns.org
Current IP Address: 69.197.187.45
$ lynx -dump http://whatismyip.org/
69.197.187.45

T

Wan ip & browser info 

Please visit http://support.dlink.com/myipaddress to view your WAN IP address and other information regarding the features of your web browser.