Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I visit a website (e.g. it states that my IP address is However, when I run ipconfig, my IP address is 192.168.0.xx for IPv4 and my DNS adress is

Why is there a difference? Also, how can I find the first IP address through the command line?

share|improve this question
up vote 6 down vote accepted

In Linux if you type ifconfig it shows your system IP address. And in the browser if you enter it shows your Internet connection IP address.

In your case,

  • 192.168.0.x --> System IP address
  • --->Internet connection.

Always the IP address shown in the ifconfig is the first IP address

share|improve this answer
If I have a web server running from 192.168.0.x, how do I access it from the outside? – ladaghini Dec 29 '11 at 9:13
You can grant access to internal systems using Port Forwarding. With Port Forwarding your router would redirect incoming connections for TCP port 80 to port 80 on your internal machine. – chuck Dec 29 '11 at 13:41

Your computer is behind a router that is using NAT to share a single connection to the Internet. I would setup an account with and install the client on your computer. Once that is done you should always be able to find the IP of your router with a dns query for "yourname" Some routers also have dynamic dns clients built in.

share|improve this answer
if someone ask me what is my IP, which one should I answer? – KMC Dec 29 '11 at 5:25
Your external if they're not in your home. Your internal if you're connected to the same network – Canadian Luke Dec 29 '11 at 5:36

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .