ifconfig ppp0 | grep 'inet addr:' | sed 's/.*inet addr:\([0-9.]*\).*/\1/g' If your connection is via ethernet, just swap ppp0 above with eth0 or eth1 or whatever. The above will return just the ip address. For more general information on your interfaces, just use ifconfig.
- Determining IP address of my pc (dial up and/or cabl... Antonio Rodriguez
- Re: Determining IP address of my pc (dial up an... Sanjeev Gupta
- Re: Determining IP address of my pc (dial up an... Christophe TROESTLER
- Re: Determining IP address of my pc (dial u... Petr \[Dingo\] Dvorak
- Re: Determining IP address of my pc (di... Martin Feeney
- Re: Determining IP address of my pc (dial up an... Wayne Topa
- Re: Determining IP address of my pc (dial u... John Hasler