Determining IP addr via script?

Michael Hipp mhipp
Mon May 17 11:34:34 PDT 2004


Anyone know a simple way to determine what your public IP address appears to 
be via a shell script? I can do it with a web browser by going to 
http://www.whatismyip.com .

(BTW, I'm not talking about the IP addr assigned to a NIC and readable by 
ifconfig.)

Thanks,
Michael




More information about the Linux-users mailing list