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

How can I get my global IP address? I can see my global IP address via a site:

It shows correctly about information of my computer including IP address. But if I use a VPN it is not correct. How can I get base global IP address?

More Info: I have multi Lan card.

I use VPN.

OS: Windows 7

Dev Tool: Visual Studio 2008

Dev Lang: c++/mfc

share|improve this question

migrated from Mar 12 '13 at 9:35

This question came from our site for professional and enthusiast programmers.

What do you mean by "base"? – alk Mar 12 '13 at 7:54
just not use vpn state ip address – bTagTiger Mar 12 '13 at 7:55
What do you mean the IP you see when connected to VPN is "not correct"? It is. That is the IP you're showing the outside world at that moment. – CodeCaster Mar 12 '13 at 7:55
Seen from the outside world: Your machine is behind a NATting device? – alk Mar 12 '13 at 7:56
when without using vpn: my address is X.X.X.X, but using vpn: my address is changed with Y.Y.Y.Y – bTagTiger Mar 12 '13 at 7:57

If you have more network interfaces, you have more IP addresses. Actual IP address for a connection is chosen primarily by the target:

If you connect to localhost, you'll probably be connected as

If you connect to some host in your vpn, you'll have IP from your VPN interface.

If you connect to some host in the internet, you'll have IP address of the interface responsible for the internet connection.

The IP address you see on a website is influenced by what is the setting of the VPN: If all trafic is passed through that VPN then you have VPN Interface's address - that's obvious. Check your internet [explorer] setting, if there isn't any proxy set by VPN and check your routing tables when the VPN is connected and disconected. That will answer all your questions.

share|improve this answer
teach me how can i check my routing tables – bTagTiger Mar 12 '13 at 8:25
try route print for start, and later you can continue with advice from this thread – V-X Mar 12 '13 at 8:32
I've seen route print and I cannot find out ip address without using vpn. But I can find out main iterface mac-address. I think we can find out my main ip address via main interface mac address – bTagTiger Mar 12 '13 at 9:23

You must log in to answer this question.