1 Introduction
An IP address is like a postal address for your device on the internet. Just as the postal service needs a street address to deliver a letter, the internet needs an IP address to route data to the right device. Every computer, phone, server and connected object that talks to the internet uses at least one IP address. Without them, no communication would be possible online.
4.3 B
Possible IPv4 addresses (232), all allocated since 2011
2128
Possible IPv6 addresses (about 340 undecillion)
2 types
Public (internet) and private (local network)
2 How It Works
Use the IP checker below to look up information about any IP address. You can see its approximate location, which organization operates it, and whether it has a suspicious reputation.
IPv4 vs IPv6
IPv4
The original format: four numbers from 0 to 255, separated by dots.
192.168.1.1
32 bits = about 4.3 billion addresses, no longer enough for every device
IPv6
The newer format, designed to solve the IPv4 shortage: eight groups of hexadecimal digits separated by colons.
2001:db8:85a3::8a2e:370:7334
128 bits = practically unlimited addresses
Public vs private
Public address
Visible on the internet. It is the address websites see when you visit them, assigned by your internet provider.
Private address
Used only inside your local network (home, office), often starting with 192.168. or 10. It cannot be reached directly from the internet.
3 Detailed Analysis
Public and private addresses in practice
Think of a building. Your public IP is the street address of the building, visible to anyone on the internet. Your private IP is your apartment number, only meaningful inside the local network. Your router acts as the concierge, translating between the two using NAT (Network Address Translation). Because IPv4 addresses ran out, many mobile and some home providers go further and share one public IPv4 address between many customers (carrier-grade NAT): the same public IP can therefore be used by hundreds of people at once.
Private IPv4 ranges (RFC 1918)
10.0.0.0/8 —
172.16.0.0/12 —
192.168.0.0/16
(IPv6 equivalent: fc00::/7)
Special addresses
127.0.0.1 / ::1 (localhost, your own machine) —
169.254.x.x (automatic address when no network configuration was received) —
100.64.0.0/10 (shared space used by carrier-grade NAT)
Where are we with IPv6?
The central pool of IPv4 addresses ran out at IANA in 2011, and the European registry (RIPE NCC) handed out its last free block in 2019. Today, IPv4 addresses are bought and resold on a secondary market. IPv6 adoption keeps growing: according to Google's IPv6 statistics, close to half of its users reached it over IPv6 in 2025, with large differences between countries. In practice, most devices now have both an IPv4 and an IPv6 address.
Static vs dynamic
A static IP address does not change, like a permanent postal address. Servers use static IPs so they can always be reached at the same place. A dynamic IP address can change regularly, for example when your box restarts. This is why an IP seen in a log weeks ago may belong to someone else today.
What an IP address reveals
An IP address is not anonymous, but it does not give a name or a street address either. From a public IP, analysts can usually determine:
Approximate geolocation
Country, often region or city. Never a street address, and accuracy varies between databases.
Provider and organization
Which internet provider, host or company operates the address block (Comcast, BT, OVHcloud, AWS...).
Network type
Residential, mobile, datacenter, VPN or Tor. A datacenter server sending emails is more suspicious than a home connection.
AS number
Identifies the network that announces the address. Useful to see whether several malicious IPs belong to the same host (see ASN & Geolocation).
Why it matters in cybersecurity
When an analyst investigates an attack, the IP address is often the first clue: the source of a suspicious login, the server that sent a phishing email, or the machine a piece of malware talks to. On its own it proves little, but combined with other indicators of compromise and with its reputation, it helps understand who is attacking, from where, and how.
Try it on mlab.sh
Look up any IP address to see its geolocation, provider, ASN and reputation data. Put what you just learned into practice by investigating real IP addresses.
Scan an IP on mlab.sh4 Red Flags
Login from an unexpected country
If your account's login history shows a connection from a country you have never been to, change your password right away and enable two-factor authentication. For a server, traffic from regions where you have no users deserves investigation.
IP from a datacenter, VPN or Tor exit node
Attackers often rent cheap cloud servers or hide behind anonymizers. Many legitimate users use VPNs too, so this is a reason for extra scrutiny, not proof of an attack.
IP on a blocklist
Reputation services such as AbuseIPDB or Spamhaus track IPs involved in spam, brute-force attacks or malware distribution. A listed IP is a strong indicator, but check how recent the reports are.
Many login attempts from a single IP
Hundreds of attempts in a short time suggest brute force, credential stuffing or a denial-of-service attempt.
Outgoing traffic to unknown IPs
Is your computer regularly contacting an IP you do not recognize? Malware could be sending data to its command-and-control server. Check the IP's reputation before drawing conclusions.
Related Modules
Reading an IP reputation
Assessing the danger of an IP address using reputation databases and threat intelligence.
Understanding ASN and geolocation
Identifying who hosts an IP and where it comes from using autonomous system numbers.
What is DNS?
The Internet's phone book: how DNS translates domain names into IP addresses.
Source: mlab Academy — Cybersecurity Awareness Platform
URL: https://academy.mlab.sh//page/ip-address
Module: What is an IP address? — Fundamentals
Disclaimer: This content is for awareness purposes only.