IP and Networking: IPv4 vs IPv6, CIDR Subnetting, ASNs, NAT, Ports, and Tools

IP and networking infrastructure is the system of numerical host addresses (IPv4 and IPv6), CIDR subnet masks, Autonomous System Numbers (ASNs), and TCP/UDP transport ports that route packets after DNS resolution. Routers forward traffic across BGP and NAT boundaries. The 6 layers connect domain names to servers.

How the 6 Layers of IP Addressing and Network Routing Fit Together

Resolving a domain name in DNS is only step one of a network connection: once the browser or mail server receives an IPv4 or IPv6 address, operating systems and internet routers rely on 6 networking layers to address, subnet, translate, route, and transport packets to the destination service. The table below compares the 6 core networking layers covered in this guide by technical scope, governing standards, and primary operational role.

Networking Layer Technical Scope & Format Governing Standards Operational Role in Web & Email Infrastructure
1. IP Protocol Versions IPv4 (32-bit dotted decimal) and IPv6 (128-bit colon hexadecimal). RFC 791 (IPv4) & RFC 8200 (IPv6) Provides unique numerical interface addresses for every server, router, and client device.
2. Address Scope & NAT Public WAN IPs vs Private LAN IPs (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) & CGNAT (100.64.0.0/10). RFC 1918, RFC 6598, & RFC 3022 (NAT) Separates globally routable internet server IPs from internal local networks behind routers.
3. Assignment Stability Static IP (fixed server address) vs Dynamic IP (temporary DHCP lease). RFC 2131 (DHCP) Ensures production DNS A/AAAA and PTR mail records point to permanent, non-rotating server IPs.
4. CIDR & Subnetting Prefix-length bitmasks (/8 to /32 in IPv4; /48 to /128 in IPv6). RFC 4632 (CIDR) Divides IP blocks into subnets, defines firewall allowlists, and formats SPF ip4:/ip6: ranges.
5. BGP & ASN Ownership 16-bit and 32-bit ASNs (AS13335, AS15169) allocated by the 5 RIRs (ARIN, RIPE, APNIC, LACNIC, AFRINIC). RFC 4271 (BGP-4) & RFC 6793 Routes IP prefixes across internet backbones, powers Anycast DNS, and scores sender reputation.
6. Ports, Proxies & CDNs 16-bit TCP/UDP ports (53, 80, 443, 25, 587), Reverse Proxies (NGINX), CDNs, and GSLB. RFC 6335 (IANA Ports) Directs packets arriving at a server IP to the exact application daemon and balances global load.

Explore the guides in four sections: Section 1 covers IP addressing, private ranges, DHCP vs static IPs, NAT, and BGP ASNs, Section 2 covers network ports, reverse proxies, CDNs, and load balancing, Section 3 links to the DNS records that map IPs (A, AAAA, PTR, SRV), and Section 4 provides 11 free browser-based IP, CIDR, and RDAP tools.

1. IPv4, IPv6, Private Ranges, Static vs Dynamic IPs, NAT, and ASNs (8 Guides)

Eight guides explain how IPv4 and IPv6 addresses are structured, which IP blocks are reserved for private local networks (RFC 1918 and CGNAT), how to check if your IP is static or dynamic, how routers translate addresses with NAT, and how BGP uses Autonomous System Numbers (ASNs). Select a guide below:

2. Network Ports, Reverse Proxies, CDNs, and DNS Load Balancing (6 Guides)

Six guides cover what happens after a packet reaches a target IP address: how TCP and UDP port numbers route traffic to the right service (53, 80, 443, 25, 587), and how reverse proxies, CDNs, and DNS load balancers distribute global traffic. Open a guide below:

3. IP-to-Domain DNS Record Guides (A, AAAA, PTR, SRV, and Core DNS) (5 Guides)

Four specialized DNS record types bridge the gap between human domain names and numerical IP addresses and ports: A and AAAA for forward resolution, PTR for reverse IP-to-hostname lookups, and SRV for port discovery. Explore the record guides below:

4. Free Browser-Based IP, CIDR Subnet, RDAP, and Network Utility Tools (11 Tools)

Inspect your own public IP and ASN, look up geolocation and reverse DNS (PTR) for any server IP, calculate IPv4/IPv6 CIDR subnet ranges, query RDAP registration dates, and convert Punycode or IPv6 formats using our 11 free tools below:

Free Tool

What Is My IP Address

View your current public IPv4/IPv6 address, ISP organization, ASN number, and geographic location instantly.

Free Tool

IP Lookup (Location, ASN & PTR)

Enter any IPv4 or IPv6 address to inspect its originating ASN, network owner, country, and reverse DNS hostname.

Free Tool

Reverse IP Lookup (PTR)

Query .in-addr.arpa and .ip6.arpa PTR records via browser DoH, verify per-name forward confirmation (FCrDNS), and inspect the observed origin ASN.

Free Tool

CIDR / Subnet Calculator

Calculate IPv4 and IPv6 CIDR subnets, subnet and wildcard masks, AWS/Azure/GCP VPC usable hosts, IP ranges, VLSM splits, and overlaps locally.

Free Tool

IPv4 to IPv6 Converter

Convert IPv4 addresses into IPv4-mapped (::ffff:), NAT64 (64:ff9b::/96), SIIT, and 6to4 IPv6 notations locally, inspect octet-to-hex math, extract embedded IPv4, or batch-convert 20 IPs to CSV.

Free Tool

WHOIS / RDAP Lookup

Query official ICANN and RIR RDAP registries for domain and IP registration data, EPP lock status, and abuse contacts.

Free Tool

Domain Age Checker

Check exact domain creation date, age in years/days, last-updated timestamp, and registration expiry date via RDAP.

Free Tool

Nameserver Lookup (Find NS + IPs)

Discover a domain's authoritative nameservers along with their underlying IPv4 (A) and IPv6 (AAAA) glue addresses.

Free Tool

Punycode / IDN Converter

Translate Unicode internationalized domain names (IDNs with accents, scripts, or emojis) to and from ASCII xn-- Punycode.

Free Tool

DNS Leak Test

Run 6-probe or 18-probe lookups to see which recursive DNS server IPs and ASNs answer your browser queries, plus IPv6 and WebRTC checks.

Free Tool

ASN Lookup (BGP Prefixes & RPKI)

Look up any ASN, IP, or domain to inspect the network holder, RIR, announced BGP prefixes, and RPKI ROA validation status.

Every guide, comparison guide, and diagnostic utility in this IP and Networking reference guide helps you manage IPv4 and IPv6 addressing, calculate CIDR subnets, understand BGP ASN routing and NAT, and audit reverse DNS (PTR) and network ports.

Frequently asked questions

How do IP addresses and DNS work together when loading a website?+

IP addresses (93.184.216.34 or 2606:2800:220:1::) are the numerical network addresses that internet routers use to deliver packets from your device to a web server. DNS (the Domain Name System) is the lookup layer that translates a human-readable domain name (example.com) into that numerical IP address before your browser opens the TCP and HTTPS connection.

Is the 192.168.1.x address shown in ipconfig my public internet IP address?+

No, the 192.168.1.x address shown in ipconfig is your Private LAN IP (from the RFC 1918 private block), assigned to your computer by your home or office Wi-Fi router via DHCP for local communication. Your router uses Network Address Translation (NAT) to replace that private address with a single ISP-assigned Public IP when packets leave your network for the internet. Use our browser-based What Is My IP Address tool above to inspect your external public IP.

What does the /24 or /32 suffix at the end of an IP address mean in firewall and SPF rules?+

In practice, that slash number is CIDR (Classless Inter-Domain Routing) notation, which tells the server how many leading bits of the 32-bit IPv4 address are fixed as the network prefix. A /32 means one exact single IP address (32 - 32 = 0 host bits, giving 2^0 = 1 IP), whereas a /24 (netmask 255.255.255.0) covers a block of 256 contiguous IP addresses (giving 2^8 = 256 IPs, such as 198.51.100.0 through 198.51.100.255). Use our CIDR Calculator above to inspect any prefix instantly.

How can I find out which cloud provider or ISP hosts a specific IP address or website?+

First, run an A Record Lookup on the domain name to retrieve its IPv4 address. Second, paste that IP address into our IP Lookup tool to query Regional Internet Registry (RDAP) and BGP routing data, which reveals the Autonomous System Number (ASN, such as AS13335 for Cloudflare, AS16509 for AWS, or AS15169 for Google Cloud), the organization name, and the reverse DNS (PTR) hostname.