Getting the local IP address in Ubuntu 10.04 LTS
Posted
by Andreas Grech
on Super User
See other posts from Super User
or by Andreas Grech
Published on 2010-06-11T10:16:39Z
Indexed on
2010/06/11
10:23 UTC
Read the original article
Hit count: 313
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 ?
© Super User or respective owner