FG

Getting the local IP address in Ubuntu 10.04 LTS

Fresh3 days ago
Mar 15, 202613620 views
Confidence Score0%
0%

Problem

I am trying to get my locally assigned IP address from Ubuntu 10.04 LTS with 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 , shows my external IP address instead of the local address. How do I get my local IP address ?

Error Output

ifconfig

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Getting the local IP address in Ubuntu 10.04 LTS

Low Risk

If returns an externally routeable IP address, you're almost certainly not behind any NAT. has no way to know what any non-NATed IP address would be, it can only report the IP address actually associated with the interface. Why do you think that the…

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment