Ravindra BagaleCourses & study guides मराठी Track your progress

Chapter 1: Networking Fundamentals

1.6 Static vs dynamic IP

Now a question: who gives your home Wi-Fi device its IP? The DHCP in your router. But if a server's IP changed every day, how would customers find it? That is why servers need a static IP.

Feature Static IP Dynamic IP
Assigned by Manually by an admin (or reserved) Automatically by a DHCP server
Changes? Never, unless changed manually May change on reboot / lease expiry
Best for Servers, DNS records, printers, VPN endpoints Laptops, phones, home users
Cost Often extra (ISPs charge) Usually included
AWS equivalent Elastic IP Auto-assigned public IPv4

DHCP (Dynamic Host Configuration Protocol) hands out IP address, subnet mask, default gateway and DNS server in four steps: Discover → Offer → Request → Acknowledge (DORA).

The laptops and billing PC in the Mauli Dairy office get a dynamic IP from DHCP – that is fine. But their EC2 web server will later get an Elastic IP, because the domain (DNS) must always point to the same IP.

Ravindra Bagale's Tip

Many students stop their instance at night and find the website down in the morning – because the auto-assigned public IP changed. The domain or the WordPress URL keeps pointing to the old IP. If you need a fixed address, use an Elastic IP (Chapter 5.5 and Chapter 14).

Practice task

DHCP che DORA che char steps (Discover → Offer → Request → Acknowledge) ek chhotya diagram madhe kadha. Mag lihun kadha: Mauli Dairy madhe kontya devices la static IP pahije (web server, printer) aani kontyana dynamic chalel (laptops, phones).

Quick revision cards

Revise this lesson in two minutes. Save the cards on your phone or download them as PNG files. The QR code on each card opens its lesson.

Comparison card: Static IP vs Dynamic IP. Static IP: An IP address that is set once and stays the same. Dynamic IP: An IP address given automatically by a DHCP server.
Comparison: Static IP vs Dynamic IP · Download PNG

More cards: Ravi Sir's Cards.