What’s My IP Address?

That’s an interesting question!

First the High Level Overview For Beginners

OK, maybe first we should ask ‘Why do we care?’ :-)

IP stands for Internet Protocol. It’s part of the TCP/IP (Transmission Control Protocol / Internet Protocol) network protocol which is used, pretty much, by all computers connected to a network. By network I mean a LAN or Local Area Network used in businesses, or the connection from your computer to your Internet Service Provider (ISP), for example. Even if you use a modem to dial your ISP over a standard phone line, once you’re connected your computer will be using TCP/IP to talk to your ISP’s computers.

To make TCP/IP work, every computer connected to a network must have a unique IP address. IP addresses are usually written as 4 numbers separated by dots, for example, 192.168.0.10. Each of the 4 numbers can be in the range 0 to 255, although 0 and 255 themselves are special values which are not normally used.

Your IP address can be compared to the address of the building where you are now (assuming you’re not reading this on a mobile device outside somewhere). Every building has a unique address, so the post office can deliver letters and parcels to the right destination. Every computer needs a unique address, so that packets of information (like parts of a web page or an email) can be delivered correctly.

More Details For The Interested

For home users, your ISP assigns IP addresses to your computer. If you dial-up, every time you make a connection you are assigned an IP address. When you hang up your connection, that IP address is made available for other callers. If you have a broadband connection then you will have what I’ll call a semi-static IP address. Because your broadband connection is always on, in theory, once you have an IP address you should keep it. In practice, your IP address may change if you power-cycle your cable modem or your ADSL modem.

The system which runs on the ISP’s computers which keeps track of who currently has which IP address is referred to as the Dynamic Host Configuration Protocol, or (more commonly) DHCP. DHCP is normally configured with a pool of IP addresses. When a computer wants to join a network (for example, when you dial up your ISP) it will request a new IP address from the DHCP server. The DHCP server will allocate one of the addresses in the pool and log the details for future reference.
As you can imagine, referring to computers by a sequence of numbers is not a very convenient thing to do (unless you’re a computer), so often as well as an IP address a computer will have a public name. This is the case for most computers connected to the internet. Names are easier for us humans to deal with than IP addresses, and there’s a system in place called DNS (the Domain Name System) which translates IP address to names and vice versa.

This means that rather than referring to 198.63.34.251, I can type www.dr-jan.com into my browser instead – much easier :-) Both methods should work – try typing the IP address directly into a new browser window and you should see a lovely yellow home page :-)

The computer which hosts my web site has a fixed IP address – it will never change, even if the computer is re-booted. This is A Good Thing because otherwise no-one would be able to find my website if it was suddenly using a new IP address. Generally speaking, computers which host websites and other web-based services will have fixed IP addresses, whilst home users and others will have dynamic addresses.

Technical Details For Experts

How you find out what your current IP address is depends on your operating system.

If you are using Windows NT, 2000 or XP, start a command window (Start|Run|cmd or Start|Run|command) and enter the command ‘ipconfig’. ipconfig /all should give you more information.

Windows 95, 98 and probably ME, start a command window as above, but run ‘winipcfg’ instead of ‘ipconfig’ and you should see a handy window appear with all the relevant details shown.

For Linux users, ifconfig is your friend. Unless you’re the root user you may need to specify the full path (normally ‘/sbin/ifconfig’).

For SUN Solaris, ifconfig -a should give you the required details.

HP-UX is awkward, as usual. You’ll need to run ‘lanscan’ to find out what LAN adapters you have, then use ifconfig lan_adapter_name. For example, ifconfig lan0.

Digital Unix uses ifconfig -a.

Footnotes and Disclaimers

I’m not an expert in Windows, so please let me know if you have any updates for the information presented here.

Hopefully my Unix and Linux knowledge is more reliable, although I’m always pleased to receive updates for that too :-)

Leave a reply

You must be logged in to post a comment.