This article covers the basics of IP addressing. If you’ve got a home router and you want to learn just enough to be dangerous, you’re in the right place.
What is an IP Address?
An IP address is a number that networks use to identify your computer. When you open your web browser and type in the address for a website, the network needs to know how to send the page back to you, and it uses your IP address to identify your computer.
On some networks, the administrator might assign you a static IP address — this means you always use the same address, which is specified in your computer’s settings.
Most networks, however, will assign you a dynamic IP address. This means that when you connect to the network, it gives you an address that will usually be yours until you disconnect from the network. Most home routers and WiFi access points that you can buy are automatically set up to use this method, using a protocol called DHCP (Dynamic Host Configuration Protocol).
(It’s not important to know anything else about DHCP… I only mention it because it may be referenced in your settings. Just keep in mind that if your connection says that it’s Using DHCP, it is set to receive a dynamic IP address from the network.).
Note: while not exactly the same, the terms “IP Address” and “DHCP Lease” are largely interchangeable. This isn’t very important, just a term that you might hear your tech support guy throwing around.
What’s My IP Address?
Depending on what OS (operating system) you’re using, you can find your IP address in different places:
Windows XP: Click on your Start button, then go to Control Panel and then Network Connections. Double-click on your connection, click on the Support tab, and you’ll see your IP address.
Windows Vista: Click on your Start button, go to Control Panel, then to the Network and Sharing Center. Click on Manage Network Connections on the left. Double-click on your connection, click on the Details button, and look for your IPv4 address.
Windows 7: Click on your Start button, go to Control Panel, click the Network and Internet heading, then to the Network and Sharing Center. Click on Change Adapter Settings on the left. Double-click on your connection, click on the Details button, and look for your IPv4 address.
Mac OS 10.5 & 10.6: Click on your Apple menu and go to System Preferences. Click on Network, and select the connection you’re using on the left. Click on the Advanced button and then the TCP/IP tab to see your IPv4 and IPv6 addresses.
IPv4 vs. IPv6
IPv4 (Internet Protocol version 4) is the protocol that most of the world is currently using to obtain IP addresses. In the near future, it will become obsolete; however, right now, it’s the only IP address that you need to worry about.
IPv6 (Internet Protocol version 6) is a new standard that allows for a much larger number of IP addresses to be concurrently active. It is currently being used in China — the rest of the world can feel free to turn it off for now.
What Can My IP Address Tell Me?
Your IP address is made up of four octets divided by dots, such as 10.59.22.12. If one tech was reciting that address to another, he’d say “ten dot fifty-nine dot twenty-two dot twelve.”
Maybe that’s useful knowledge… maybe not.
Here are a few tips on “reading” IP addresses:
192.168.x.x: This is the most common DHCP range handed out by commercial routers. If you go to Best Buy and pick up a Linksys, Netgear or Belkin router, plug it into your modem and connect to it, chances are you’ll get an IP address that starts with 192.168. If your address is in this range and the last octet isn’t a 1, you’re probably okay.
169.254.x.x: IP addresses that start with 169.254 are commonly referred to as self-assigned or auto-configuration IP addresses. You’ll get one of these if your computer expects to receive an IP address from the network, but doesn’t. If you’re a Windows user, you might get an error that says you have “limited or no connectivity” — any of these indicators simply means that you didn’t get an IP address from the network.
Different operating systems give you different means of rectifying this problem. In Windows (depending on which version), you should be able to Diagnose or Repair the connection to try to get a good IP address. If options like these fail, try unplugging your router for about 30 seconds — this is called power-cycling the router, and may help resolve mysterious problems that you can’t quite put your finger on.
x.x.x.1: In almost all cases, when the last octet in an IP address is 1, it is a gateway address. This means it’s the address of the device on the network that gives IP addresses to everybody else. If your computer’s address ends with 1 and you can’t get online, you most likely have a static IP address that you need to get rid of. More on gateway addresses further down…
How Do I Change My IP Address?
This is not something you want to do unless you’re sure your IP address is causing you a problem. If you’re currently reading this online, for example, do not change your IP address.
On the other hand, if you can’t get online, use the directions above to find your IP address. If you think it needs to be changed, read on:
Windows XP: Click on your Start button, then go to Control Panel and then Network Connections. Right-click on your connection and go to Properties. Double-click on Internet Protocol (TCP/IP).
Windows Vista: Click on your Start button, go to Control Panel, then to the Network and Sharing Center. Click on Manage Network Connections on the left. Right-click on your connection and go to Properties. Double-click on Internet Protocol Version 4 (TCP/IPv4).
Windows 7: Click on your Start button, go to Control Panel, click on the Network and Internet heading, then to the Network and Sharing Center. Click on Change Adapter Settings on the left. Right-click on your connection and go to Properties. Double-click on Internet Protocol Version 4 (TCP/IPv4).
This is the place in all Windows operating systems where you can specify an address (if one has been given to you by the person who runs your network); however, in most cases, you’ll want to make sure you can get one from the network by selecting the radio buttons next to Obtain an IP address automatically and Obtain a DNS server address automatically.
Mac OS 10.5 & 10.6: Click on your Apple menu and go to System Preferences. Click on Network, and select the connection you’re using on the left. Click the Advanced button and go to the TCP/IP tab. Next to Configure IPv4, you can set the connection to Using DHCP to automatically obtain an IP address from the network; only change this if you’re sure you should.
What’s a Gateway Address?
It can be referred to as the gateway, the default gateway, the router, or a host of other names — it’s the address of the router that gave your computer its IP address, and it almost always has a fourth octet of “1″.
Fun trick! If you type your gateway address into your web browser, you’ll probably get a login page where you can put in a username and password and configure your router!
If you’ve just plugged in a brand new router, the username and password are probably both “admin”. I’d recommend logging into it and changing the password, if nothing else. If you don’t do this on a wireless router, and your neighbors are bigger nerds than you, you can easily find your router hijacked for their sinister purposes.
What’s a Subnet Mask?
Pretend you never saw it. Unless you really know what you’re doing, it’s never something that you should try to alter — and it’s definitely beyond the scope of this article.
Check back for more articles on basic networking!