Helping people with computers... one answer at a time.

Every device on an TCP/IP network must have a unique IP address. IP addresses are assigned, either automatically by DHCP, or by manual configuration.

Given that IP address must be unique for every computer attached to the internet,how is it possible that we do not plug in IP addresses for the computer we want to connect?

Well, every device connected to the internet must have a unique IP, it's true. And they're assigned one of two ways: static or dynamic. But there's also a useful trick that lets multiple computers share a single IP address ... and that trick is called a router.

Static IP addresses are exactly that: static or unchanging. They are assigned by your network administrator or ISP, and yes, you do have to configure the computer or other internet device manually to respond to that specific address.

But, as you point out, most folks don't need to do that. So how do they get their IP addresses?

Enter the dynamic IP address and "DHCP" or Dynamic Host Configuration Protocol.

Using DHCP (which is the default for Windows TCP/IP connections) the computer broadcasts a special request for an IP address to the network. An upstream device, commonly belonging to your ISP, responds with an IP address that the computer then configures itself to use. Especially when many computers aren't connected continuously, this allows the ISP to reuse the IP addresses of computers that have disconnected from the internet.

If you need your computer to be identifiable on the internet ... for example if you're running a web server or want people to be able to connect to your machine, you'll probably need or use a static IP address. On the other hand, if all you do is connect out to surf or read email, as most users do, then a dynamic IP address is the easiest to configure.

Routers are devices that allow multiple computers to "share" a single IP address. The device that's connected to the internet is the router, and it has a unique IP address. The router can then act as the DHCP server to the local network handing out local IP addresses to the computers connected to it. As traffic flows across the router, it does the job of translating the IP addresses from the local addresses it has assigned, to the external IP address it was assigned, and routing the right bits of data to the right computer ... hence the name.

One of the many side effects of using a router is that it can be assigned a static address on the internet, and hand out dynamic IP addresses locally, vice versa, or any combination.

Article C2328 - April 10, 2005

Leo Leo A. Notenboom has been playing with computers since he was required to take a programming class in 1976. An 18 year career as a programmer at Microsoft soon followed. After "retiring" in 2001, Leo started Ask Leo! in 2003 as a place for answers to common computer and technical questions. More about Leo.

Not what you needed?

Recent Comments
42 Comments

What causes multiple computers set for DHCP to fail to the internet. If a static address is assigned it will connect, but it will not connect via DHCP. Or if it does, it drops out eventually. This happens with both ethernet and wireless clients.

I'd suspect a problem with the router or gateway device. If you have a consumer router, try just rebooting it.
Leo
10-Mar-2011

Posted by: mike butler at March 8, 2011 8:54 PM

can every computer with a external ip address able to ping every other computer to its external ip address.
I am unable to ping my computer connected using one ISP with my friends ip connected using another ISP provider.

Sometimes ping is blocked. Usually it works, but not all the time.
Leo
28-Jul-2011

Posted by: Sharan at July 28, 2011 10:07 AM

1/ Do I need to pay for a static IP address from the ISP? Ex. 125.25.5.1
2/ If I get this static IP address - I would use it for my router. Can I then create a range for all devices connected to this router? Example 125.25.5.2 - 125.25.5.30...
Thanks
Provi

1) typically, yes, but it depends on your ISP. 2) typically NO. You would have to get those IP addresses from your ISP as well. Usually you would get local IP addresses (192.168.x.x) behind your router.
Leo
23-Sep-2011

Posted by: Provi at September 22, 2011 2:10 PM

I have satellite Internet service providing a single IP address. I can only connect with one PC on my network. I've been told to install a router ahead of our Netgear 16-port switch which is what you've described here and it makes perfect sense but will any router work for this application or do I need something very specific?

Nope, pretty much any consumer-level router should do the trick. It's perhaps the single most common reason people get, need and use a router at home.
Leo
31-Jan-2012
Posted by: Scott Logan at January 30, 2012 5:13 PM

What does ip planning mean?

Posted by: Somya at April 19, 2012 12:59 PM
Post a comment on "How is my IP address assigned?":





Remember Me?

(You may use HTML tags for style)

Before commenting, please...

  • READ THE ARTICLE. A comment that shows you didn't will be deleted and ignored.

  • Comment only on the article. Use the search box at the top of the page if you have a question about something else.

  • NO PERSONAL INFORMATION in the comment. No email addresses. No phone numbers. No physical addresses.

  • Anything that looks the least bit like spam will be deleted. Links to unrelated sites or links that appear to be primarily promotional will be deleted, or the comment will be deleted.

  • Don't ask me to recover lost passwords or hacked accounts. I can't. Those comments will be deleted.

  • I can't respond to every comment. And I can't vouch for the accuracy of others who do.

Please wait. Your comment is being processed ...