Understanding IP Address: An Introductory Guide

Every device connected to the internet or local network has an IP address.

Yes, even your smartphone, smart TV, and smart speakers have it. You might have heard about IP addresses, and you may have also seen how they look – those series of numbers separated by dots or colons.

An IP address is an address to which the information you request from the internet arrives.

For example, when you search for your favorite movie on the internet, the search engine takes a while to load the results and show them to you on the screen. A lot goes in the back that you can’t see. Without your IP address, your request will land nowhere.

That’s how important an IP address is.

So, let’s understand IP addresses in detail and some key information associated with them.

What Is IP?

To understand an IP address, it’s important to learn what IP is in the first place.

Internet Protocol (IP) is a set of governing rules for data packets, data format, or datagram sent through a local network or the internet. It is a connectionless and datagram-oriented protocol as it works on a dynamic computer network.

An IP works without a centralized monitor or directory and never relies on a node or link. Hence, each data packet must have the source and destination’s IP address and other key information to get delivered successfully.

What Is An IP Address?

An Internet Protocol Address (IP address) refers to a unique address or numerical label designated for each device connected in a computer network using the Internet Protocol (IP) for communication.

Example of an IP address: 192.16.2.1

Simply put, IP addresses identify a device on a local network or the internet and allow data to be transmitted between the devices, containing location information while making devices accessible for easy communication. IP addresses offer a great way of differentiating between different devices like computers, printers, websites, routers, etc.

An IP address is used for two purposes:

The Internet Assigned Numbers Authority (IANA) manages IP addresses globally. And, 5 Regional Internet Registries (RIRs) manage them in designated regions and assign them to local internet registries like end-users and Internet Service Providers (ISPs).

How Does An IP Address Work?

An IP address works in the same way as your house address does for you. If you want to receive a letter or a parcel from a courier, you need to give the sender your house address. Similarly, if you want to receive electronic mail or data from the web, your connected device or computer needs to have an internet address so that the sender can identify it and send the data.

Whether it is your computer, tablet, smartphone, smart lights, thermostat, baby monitor, or anything else connected to the internet, every device has to have an internet number or address to establish a connection and communicate with other devices using a set of guidelines or protocols.

This is why every site like Amazon or Netflix also consists of an IP address to communicate with you and send the information you requested. However, they keep a name instead of their IP address, for example, Amazon.com and Netflix.com, to help you find them easily. Otherwise, you had to type this long set of numbers for every site you visit. Names are easier to remember than numbers.

Now, you may ask how IP addresses are allocated to each device.

An IP address is not random; it is produced mathematically and allocated by the IANA.

In the above example of an IP address – 192.16.2.1, you can see that it is represented as a set of 4 numbers separated by a period. Each number can range from 0 to 255 in this set. So, the full range of IP addresses can go from 0.0.0.0 to 255.255.255.255.

Types of IP Addresses

IP addresses are of different categories, each with different types.

#1. Public and Private

A business or individual having an internet service has IP addresses of two types: private and public. These IP addresses are based on the network location.

As the usage of different devices is growing, the number of IP addresses at home grows with it. Hence, your router must find a way to detect these systems separately, which is why it generates unique private IP addresses for each of them, differentiating devices on your network. Devices outside the private network will not be able to access the private IP addresses.

External devices use public IP addresses to find your device over the internet. A public IP address is of two types: static and dynamic.

#2. Static and Dynamic

Every business or individual does not need a static IP address. But if you want to host your own server, you must have a static IP address. It ensures your email address and sites tied to a static IP address have the same IP consistently. As a result, external devices can find you easily on the internet.

This approach saves ISPs costs, and they don’t need to perform specific tasks to re-establish a user’s IP address time and again. In addition, it also ensures security as changing IP addresses makes it difficult for hackers to zero in on one user.

We have earlier discussed static IP addresses for businesses wanting to own a server for their sites. Similarly, there are website IP addresses of two types as well.

#3. Shared and Dedicated IP address

Hence, you can share files with different people securely within your organization or go anonymous. Furthermore, you can even access your site with your IP address instead of your domain name.

#4. Logical and Physical

IP Versions: IPv4 and IPv6

There are two versions of IP commonly in use – IPv4, and IPv6. Each version represents an IP address in a different way.

Internet Protocol Version 4 (IPv4)

The original IP version deployed in the Advanced Research Projects Agency Network (ARPANET) for the first time in 1983 was IPv4. It is used widely in many corporations. Due to its prevalence, the terminology “IP address” still commonly refers to those addresses that IPv4 defines.

IPv4 represents an IP address in the form of a 32-bit number, consisting of 4 numbers separated by periods. Each number represents a decimal (base-10) for an 8-digit binary number (base-2) or octet. It allows IP addresses.

As explained earlier, each of the 4 numbers in an IPv4 address ranges from 0-255.

Example: 172.16.254.1, 192.16.2.1, 192.26.254.1, 172.0.16.0, etc.

Internet Protocol Version 6 (IPv6)

Due to the tremendous growth of the web, IPv4 addresses started depleting around the 1990s. As a result, the scarcity of IP address space became grave to assign them to the ISPs and end-users.

This pressurized the Internet Engineering Task Force (IETF) to innovate and explore technologies to extend the internet’s address capability. They eventually redesigned the IP as IPv6 in 1995. It went through a series of testing until the 2000s when its commercial deployment began.

In IPv6, the address space was increased to 128 bits or 16 octets (from 32 bits or 8 octets in IPv4). IPv6 is represented by 8 sets of 4 hexadecimal digits, where each number set is separated with the help of a colon and may contain letters and digits.

Example: 2001:0DB8:AC10:0000:0011:AAAA:2C4A:FE01

Yes, it’s super long, but some conventions help abbreviate them.

For example, 2001:0DB8:AC10::0011 would need you to add four sections of zeros instead of a double colon. It becomes, 2001:0DB8:AC10:0000:0000:0000:0000:0011.

The intention behind creating IPv6 is to expand the space and redesign routing by aggregating subnetwork routing prefixes more efficiently. It slowed down routing tables growing in the routers. It also changes the routing prefix of the whole network automatically. So, even if the routing policy or global connectivity policy changes, it won’t need manual renumbering or internal redesigning.

You may ask why IP versions 4 and 6, where are others between and after them?

Here’s the answer.

In reality, other versions were defined, from versions 1 to 9, but only versions 4 and 6 found widespread use. Version 1 and 2 were TCP protocol names in 1974 and ’77 to separate the IP specification at that time. Moreover, version 3 was introduced in 1978, where v3.1 was the first ever version in which TCP got separated from IP. Next, version 5 that surfaced in 1979 was the experimental protocol – Internet Stream Protocol.

IPv6 is a combination of various versions – v6, v7, v8, and v9.

Does your website support IPv6? Use the IPv6 testing tool to find out.

What Are Subnetworks and Classes of An IP Address?

Subnetworks

IP networks can be categorized into subnetworks for IPv4 and IPv6 both. Hence, an IP address has two parts:

Subnetworks involve a subnet mask or a CIDR notation to determine how an IP address is separated into the host and network parts. “Subnet” is the term used for IPv4 only. However, both versions utilize CIDR notation and concepts.

In subnets, an IP address has a slash at the end with the number of bits in decimal to represent the network part, also known as the routing prefix. Most subnet masks begin with 255 and end when the network part ends. Example: 255.255.255.0

Another example, suppose 172.0.2.1 is an IPv4 address, and 255.255.255.0 is its subnet. For this, CIDR notation can be 172.16.2.1/24. Here, the IP address’s first 24 bits represent the subnet and network.

IP Address Class

Initially, the network part had the highest-order octet. This approach allowed just 256 networks, which started becoming insufficient as more networks developed. It led to the revision of address specifications to introduce classful network design.

This design facilitated fine-grained subnetwork architecture and assigning a greater number of individual networks. In this, the first 3 bits of the most significant octet in an IP address represented the address “class.” And it defined 3 classes – A, B, and C.

Also, the IPv4 system allowed addresses between 0.0.0.0 and 255.255.255.255. But some numbers are reserved for certain purposes on TCP or IP networks. The IANA recognizes these reservations. They are divided into:

As a subnet is itself a small computer network connected to a large network via a router, it can have an address system to facilitate communication between computers in its network without sending any data across the bigger network. Furthermore, a router can be configured to detect subnets and perform suitable traffic routing.

So, here are some of the reserved IP addresses for subnets or classes:

Class Leading bits Number of Networks Addresses per network Total Addresses in Class Range
Class A 0 128 (2 7 ) 16,777,216 (2 24 ) 2 31 0.0.0.0 – 127.255.255.255
Class B 10 16,384 (2 14 ) 65,536 (2 16 ) 2 30 128.0.0.0 – 191.255.255.255
Class C 110 2,097,152 (2 21 ) 256 (2 8 ) 2 29 192.0.0.0 – 223.255.255.255
Class D 1110 Not defined Not defined 2 28 224.0.0.0 – 239.255.255.255
Class E 1111 Not defined Not defined 2 28 240.0.0.0 – 255.255.255.255

How to Lookup An IP Address?

If you want to check your router’s IP address, hop on to Google and ask what your IP address is. It will display the answer right at the top. It’s actually your public IP address.

You can refer to many other sites to obtain the same data. As you make a request using your router while visiting websites, they will have your IP information. You can go to WhatIsMyIP.com, WhatIsMyIPAddress.com, etc., to find out your IPv4 and IPv6 addresses and, perhaps, your location.

Also, if you are interested to know more information about an IP address you already know, here are some of the tools/sites you can use. They will help you find information about an IP address like location, city, ISP, owner, etc.

Now, why you would need information on other IP addresses?

A business can know others’ IP addresses to find the location where they are running their business. It is pretty common for advertisers, organizations, service sites, etc., to obtain IP address information for promotions, ads, and other purposes.

What are the ways to know others’ IP addresses or other people to know yours?

However, you can mask your IP address using a Virtual Private Network (VPN) that routes you to another network using a different IP.

What Are Security Threats Related to IP Addresses?

Due to various techniques available, cyberattackers are targeting IP addresses to inject their harmful intent. Threats related to IP addresses can be:

There are risks involved when:

How to Protect Your IP Address?

If you can hide your IP address, you can protect your device, online identity, and data. There are two ways to go about it:

Conclusion 👩‍🏫

This discussion on IP addresses will you get started with the concept and explore its terminologies. It will also help you find your IP address and of others’ as well using some tools. Finally, you can learn to map the risks involved with IP addresses and how to mitigate them.