---
title: "Discussion on \"The Network Layer & IP Addressing: IPv4, IPv6, Private vs. Public, and Static vs. Dynamic IPs\" | Hashnode"
description: "Discussion on \"The Network Layer & IP Addressing: IPv4, IPv6, Private vs. Public, and Static vs. Dynamic IPs\". While every network card has a unique MAC address, MAC addresses only work locally within a LAN and cannot route data across the global internet. That is where IP addressing comes in. In this guide, we break down everything you need to know about IP addresses and how they act as your device's global mailing address. You will learn how every IP address splits into a Network ID and Host ID, why the 32-bit IPv4 standard ran out of addresses, and how the 128-bit IPv6 standard solves address exhaustion permanently. We also explore the difference between Private IPs (RFC 1918 ranges used inside your local network) and Public IPs (your external identity on the internet), the role of the 127.0.0.1 loopback address, and when to use DHCP-assigned Dynamic IPs versus permanent Static IPs for servers and cloud infrastructure."
url: "https://hashnode.com/posts/the-network-layer-ip-addressing-ipv4-ipv6-private-vs-public-and-static-vs-dynamic-ips/6abbd78c7af3b9fb4e4f160a"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [The Network Layer & IP Addressing: IPv4, IPv6, Private vs. Public, and Static vs. Dynamic IPs](https://savaj-parimal.hashnode.dev/the-network-layer-ip-addressing-ipv4-ipv6-private-vs-public-and-static-vs-dynamic-ips?utm_source=hashnode&utm_medium=feed)

While every network card has a unique MAC address, MAC addresses only work locally within a LAN and cannot route data across the global internet. That is where IP addressing comes in. In this guide, we break down everything you need to know about IP addresses and how they act as your device's global mailing address. You will learn how every IP address splits into a Network ID and Host ID, why the 32-bit IPv4 standard ran out of addresses, and how the 128-bit IPv6 standard solves address exhaustion permanently. We also explore the difference between Private IPs (RFC 1918 ranges used inside your local network) and Public IPs (your external identity on the internet), the role of the 127.0.0.1 loopback address, and when to use DHCP-assigned Dynamic IPs versus permanent Static IPs for servers and cloud infrastructure.

Sep 29 · 9 min read · savaj-parimal.hashnode.dev  
Read the article

-   [#networking](https://hashnode.com/tag/networking)
-   [#computer-networks](https://hashnode.com/tag/computer-networks)
-   [#devops](https://hashnode.com/tag/devops)
-   [#web-development](https://hashnode.com/tag/web-development)
-   [#software-development](https://hashnode.com/tag/software-development)
-   [#cloud](https://hashnode.com/tag/cloud)

## Written by

[Parimal Savaj](https://hashnode.com/@savaj)

@savaj · Ahmedabad, India

  
[View profile](https://hashnode.com/@savaj)

AI Product Engineer building scalable backend systems and agentic workflows.

AI Product Engineer exploring the reality of building with language models. I use this blog to openly share what I learn along the way, turning complex engineering hurdles into practical knowledge for other builders.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
