[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: What's my dynamic IP address

* Marc Shapiro <m_shapiro@bigfoot.com>, 2002-10-01 20:46 -0400:
> As the subject says: Where do I find my IP address after I connect to my
> ISP with a dial-up account?  I am guessing that it is somewhere in
> 'proc', but I haven't figured out where.

/sbin/ifconfig ${iface} | grep 'inet'  | cut -d: -f2 | cut -d " " -f1 | grep -v 127

or, graphically,

xmessage -center $(/sbin/ifconfig ${iface} | grep 'inet'  | cut -d: -f2 | cut -d " " -f1 | grep -v 127)

(long lines)


Attachment: pgp0n_hQNDEGJ.pgp
Description: PGP signature

Reply to: