Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

Possible Duplicate:
Getting my IP address?

The connection provided to me by my ISP works on DHCP and it assigns a Class C (LAN) IP address to my Network adapter automatically. for example :

I know that once a device, any device connects to internet needs a unique (WAN) IP address. I want to know which (WAN) IP is being assigned to my PC when I connect to internet/browse.

share|improve this question

marked as duplicate by random, Ivo Flipse Jan 23 '10 at 11:22

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Grrrrrr, classes of IPs are antiquated and aren't used anymore. Everything is CIDR now. – MDMarra Jan 23 '10 at 8:29
Wait, so your ISP assigns you an IP address like, or is that just the IP address of your network interface inside your network (found using ipconfig)? – Josh Hunt Jan 23 '10 at 8:29
up vote 1 down vote accepted

It's your router that has the outside IP address, since it's the one that's directly in your ISP's network. This address is shared by all the computers in your home, which are all contained in a separate internal network where internal IP addresses are granted by the router acting as DHCP master. The router acts as a gateway, since your internal home network is otherwise completely cut off from the rest of the world.

When connecting to the exterior, the router acts as your agent and establishes the connection for you, shuttling requests and data between your computer and the outside computer. That means that when connecting to the outside, ALL your internal computers seem to the Internet at large to have the same IP address, which is actually that of your router.

The site What is my IP address will tell you your IP address and explain all the involved concepts.

share|improve this answer

I want to know which (WAN) IP is being assigned to my PC when I connect to internet/browse.

No WAN IP is being assigned to your PC at all. It is being assigned an internal IP address by the device giving DHCP leases, most likely your router. When your computer wants to access the internet, it communicates through your border network device, which is probably the modem given to you by your ISP. External sites see your IP as the one assigned to your modem, no matter which node sends out data from your network. You can see that IP address on a site like

This is not technically NAT, which a lot of people confuse it with, but PAT (port address translation). Incoming data uses an ephemeral port number to reach your computer unless configured otherwise.

share|improve this answer
"No WAN IP is being assigned to your PC at all." this is not exactly accurate, i know quite a few folks here in rural areas on a backhaul wireless network where the WAN address equals the local IP address. and certain routers offer a feature called IP passthrough. – Molly7244 Jan 23 '10 at 11:29
@Molly, he indicated his network has the address, which is a private address. I never said "A WAN IP address is NEVER assigned to your PC", you have to read things entirely before making comments. It is entirely true. – John T Jan 23 '10 at 19:52
+1 for - lightweight and does it's job! and dead on with your answer... As for "IP Passthrough", it is simply NAT which is disabled which "passes through" IP Addresses. @John T Never heard of PAT - going to do a bit of reading! – William Hilsum Jan 24 '10 at 2:33
I'm observing technical details. while John's answer is correct it is not entirely impossible to have a public IP address assigned to a PC. – Molly7244 Jan 24 '10 at 2:48
@Wil @Molly Keep comments related to this question and answer. I have removed/edited comments. – Troggy Jan 24 '10 at 9:16

The easiest way to get your external IP address is to use a site like the aptly named

share|improve this answer

I second pkaeding's suggestion.

Alternatively, you could run a tracert, and the first router that is returned should be your "external IP/WAN IP" as you refer to it.

share|improve this answer
tracert will show your router's private address, something like 192.168.X.X. – John T Jan 23 '10 at 7:55

Not the answer you're looking for? Browse other questions tagged or ask your own question.