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:
What Is an ASN (Autonomous System Number)?
How BGP uses 16-bit and 32-bit ASNs to route IP prefixes, Stub vs Multihomed vs Transit ASes, the 5 RIRs, and ASN lookup.
GuideStatic vs Dynamic IP Address
How DHCP leases work, how to check if your IP is static or dynamic on Windows/Mac/Linux, and why servers need static IPs.
GuideIPv4 vs IPv6: Key Differences Explained
Compare 32-bit dotted-decimal IPv4 (4.3B addresses) against 128-bit hexadecimal IPv6 (340 undecillion), headers, and dual-stack speed.
GuidePublic vs Private IP Addresses
Understand external WAN IPs vs internal LAN IPs (10.x.x.x, 172.16.x.x, 192.168.x.x) and why private IPs fail in public DNS.
GuideReserved and Private IP Ranges (RFC 1918 & More)
Complete reference table for RFC 1918 private LANs, 127.0.0.0/8 loopback, 100.64.0.0/10 CGNAT, link-local, and TEST-NET blocks.
GuideNAT Explained (Network Address Translation)
How home and enterprise routers use SNAT, DNAT, Port Address Translation (PAT), and Carrier-Grade NAT to share one public IP.
GuideWhat Is BGP (Border Gateway Protocol)?
How autonomous systems announce IP prefixes over TCP port 179, best-path selection, eBGP vs iBGP, and anycast DNS routing.
GuideRPKI and ROAs: Securing BGP Route Origins
How Route Origin Authorizations cryptographically bind IP prefixes to originating ASNs and prevent BGP hijacks.
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:
Common Network Ports: The Reference List
Complete cheat sheet for DNS (53, 853), Web (80, 443), Email (25, 465, 587, 993), SSH (22), and database TCP/UDP ports.
GuideDNS Load Balancing (Round-Robin, GeoDNS & GSLB)
Compare Round-Robin, Weighted, Latency-Based, GeoDNS, and Active Failover against L4/L7 application load balancers.
GuideReverse Proxy Explained (NGINX & Cloudflare)
How reverse proxies sit in front of backend servers to terminate SSL/TLS, hide origin IPs, cache assets, and route ports.
GuideWhat Is a CDN (Content Delivery Network)?
How Anycast edge networks cache static and dynamic assets across global PoPs to cut latency and absorb DDoS attacks.
GuideDNS-over-HTTPS (443) vs DNS-over-TLS (853)
How encrypted DNS encapsulates port 53 queries inside HTTPS port 443 and TLS/QUIC port 853 connections.
GuideEmail Ports Explained: 25 vs 465 vs 587
Why ISPs block outbound TCP port 25 and when to configure port 587 (STARTTLS) or port 465 (Implicit TLS).
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:
A Record (IPv4 Address Mapping)
Point domains and subdomains to 32-bit IPv4 server addresses and avoid RFC 1918 private IP and port syntax mistakes.
GuideAAAA Record (IPv6 Quad-A Mapping)
Configure 128-bit IPv6 addresses, :: zero-compression shorthand, and dual-stack Happy Eyeballs connection racing.
GuidePTR Record (Reverse DNS / rDNS)
How .in-addr.arpa and .ip6.arpa map IP addresses back to hostnames at your cloud host/ISP for FCrDNS mail verification.
GuideSRV Record (TCP/UDP Port Locator)
Publish _service._proto priority, weight, and custom port numbers in DNS for SIP, Teams, Active Directory, and Minecraft.
GuideDNS: The Complete Guide to the Domain Name System
Return to the main Domain Name System guide covering resolution architecture, propagation, migrations, and troubleshooting.
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:
What Is My IP Address
View your current public IPv4/IPv6 address, ISP organization, ASN number, and geographic location instantly.
Free ToolIP Lookup (Location, ASN & PTR)
Enter any IPv4 or IPv6 address to inspect its originating ASN, network owner, country, and reverse DNS hostname.
Free ToolReverse 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 ToolCIDR / 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 ToolIPv4 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 ToolWHOIS / RDAP Lookup
Query official ICANN and RIR RDAP registries for domain and IP registration data, EPP lock status, and abuse contacts.
Free ToolDomain Age Checker
Check exact domain creation date, age in years/days, last-updated timestamp, and registration expiry date via RDAP.
Free ToolNameserver Lookup (Find NS + IPs)
Discover a domain's authoritative nameservers along with their underlying IPv4 (A) and IPv6 (AAAA) glue addresses.
Free ToolPunycode / IDN Converter
Translate Unicode internationalized domain names (IDNs with accents, scripts, or emojis) to and from ASCII xn-- Punycode.
Free ToolDNS 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 ToolASN 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.