Getting the local IP address in Ubuntu 10.04 LTS
- by Andreas Grech
I am trying to get my locally assigned IP address from Ubuntu 10.04 LTS with ifconfig and what I'm getting is my external IP address (in other words, it's the same IP I see on whatismyip.com)
When running ifconfig eth0, inet addr shows my external IP address instead of the local address.
How do I get my local IP address ?