Loading network utility...
Loading network utility...
An Internet Protocol (IP) address is a numerical label assigned to every device participating in a TCP/IP network. Beyond identifying a machine, IP addresses serve as location identifiers that allow global routing tables to direct packets across interconnected networks spanning thousands of miles in milliseconds.
Run live checks and calculations directly on LotsofNetwork.
An IPv4 address consists of exactly 32 contiguous binary bits. For human readability, these 32 bits are divided into four 8-bit groupings known as octets, separated by periods, creating the standard dotted-decimal notation (such as 192.0.2.1).
Each octet can represent any integer value ranging from binary 00000000 (decimal 0) to binary 11111111 (decimal 255). As a mathematical result, the maximum theoretical pool of IPv4 addresses is 2^32, equaling exactly 4,294,967,296 unique addresses.
Importantly, an IP address is conceptually divided into two distinct components: the Network Identifier (Prefix), which designates the specific subnetwork or cloud VPC, and the Host Identifier, which uniquely distinguishes the individual interface, server, or container on that subnetwork.
Dotted Decimal: 192.168.1.100 Binary Octet 1: 11000000 (= 192) Binary Octet 2: 10101000 (= 168) Binary Octet 3: 00000001 (= 1) Binary Octet 4: 01100100 (= 100) ------------------------------------------------------------- Full 32-Bit Value: 11000000101010000000000101100100 (32 bits)
In the Layer 3 (Network Layer) of the OSI model, data generated by application protocols (such as HTTP or SSH) is encapsulated within an IP packet. Under RFC 791, the base IPv4 header is 20 bytes long and contains critical control metadata.
The final 8 bytes of every standard IPv4 header are reserved for the Source IP Address (32 bits) and Destination IP Address (32 bits). When an intermediate router receives a packet, it reads the Destination IP address, performs a longest prefix match against its internal routing table, decrements the Time to Live (TTL) counter by 1, recalculates the Header Checksum, and forwards the packet toward the next-hop gateway.
| Header Field | Bit Length | Functional Purpose in Routing |
|---|---|---|
| Version | 4 bits | Identifies protocol version (4 for IPv4, 6 for IPv6) |
| IHL | 4 bits | Internet Header Length in 32-bit words (minimum 5 words = 20 bytes) |
| Type of Service / DSCP | 8 bits | Quality of Service (QoS) packet priority marking |
| Total Length | 16 bits | Entire packet size in bytes (header + payload, max 65,535 bytes) |
| Time to Live (TTL) | 8 bits | Hop count limit; decremented at each router to prevent routing loops |
| Protocol | 8 bits | Upper layer protocol (e.g., 6 for TCP, 17 for UDP, 1 for ICMP) |
| Header Checksum | 16 bits | Error detection verifying header integrity during transmission |
| Source IP Address | 32 bits | Originating device network interface address |
| Destination IP Address | 32 bits | Final target recipient network interface address |
Because the 4.3 billion address IPv4 space could not support every internet-connected smartphone, server, and IoT device, the IETF issued RFC 1918 to reserve three distinct private address blocks for internal enterprise and home local area networks (LANs):
1. 10.0.0.0/8 (10.0.0.0 to 10.255.255.255): Contains 16,777,216 addresses. Widely deployed in enterprise campus networks and cloud VPC architectures.
2. 172.16.0.0/12 (172.16.0.0 to 172.31.255.255): Contains 1,048,576 addresses across 16 contiguous /16 blocks. Heavily utilized in Docker containers and Kubernetes overlay networks.
3. 192.168.0.0/16 (192.168.0.0 to 192.168.255.255): Contains 65,536 addresses across 256 /24 subnets. The default standard for home consumer Wi-Fi routers.
Private IP addresses are strictly non-routable across the public internet. Internet Service Provider (ISP) border routers immediately discard packets with RFC 1918 source or destination addresses.
If your WAN interface shows an IP address in the 100.64.0.0/10 block (100.64.0.0 – 100.127.255.255), your ISP is using Carrier-Grade NAT (CGNAT). You share a public IP with other customers, preventing port forwarding unless you request a dedicated static IP.
To allow millions of devices with private RFC 1918 addresses to communicate across the single public IP assigned by an ISP, routers implement Network Address Translation (NAT), specifically Port Address Translation (PAT / NAPT - RFC 3022).
When an internal device (e.g., 192.168.1.50) opens an outbound TCP connection to a web server, the local gateway router rewrites the source IP in the packet header to the router's own public WAN IP and substitutes a unique ephemeral source port (e.g., port 54321).
The router registers this translation in its stateful NAT table. When return packets arrive from the remote web server at port 54321, the router reverses the translation, rewriting the destination back to 192.168.1.50 and forwarding it across the LAN.
To inspect your local machine's IP address, subnet mask, default gateway, and public internet IP, use these verified terminal commands:
# Discover your public facing IP address via secure HTTPS API curl -s https://ifconfig.me # or curl -s https://api.ipify.org # Linux: Show private IP and active network interfaces ip -4 addr show # macOS: Show local Wi-Fi private IP address ipconfig getifaddr en0 # Windows Command Prompt: Inspect full TCP/IP configuration ipconfig /all # Trace packet hops and inspect intermediate router IP addresses traceroute 1.1.1.1 # Windows: tracert 1.1.1.1
AI Mobile App Developer & Full-Stack Systems Engineer•Dhaka, Bangladesh
Bayajit Islam is an AI Mobile App Developer and Full-Stack Systems Engineer based in Dhaka, Bangladesh. With 2+ years of hands-on production experience building cross-platform apps for iOS, Android & Desktop with Flutter & Dart, asynchronous backends with FastAPI & Python, and modern web applications with Next.js, TypeScript, and Docker, he engineered LotsofNetwork as a zero-latency, privacy-first diagnostic platform for developers and network administrators.
Quick answers to common questions on this topic.
High-speed, zero-cost engineering tools built for network diagnostics and developer workflows.
Reverse IP to PTR hostname & verify FCrDNS
Query A, AAAA, MX, TXT & NS records
Domain registrar & expiry info
Audit SPF, DKIM & DMARC records
Check global DNS record propagation across Anycast resolvers
Calculate CIDR, masks & host ranges