Every server lives on a network, and it all comes down to four things: IP addresses, the gateway, DNS and ports. In this episode (the start of Level 2!) you'll learn how to find your server's IP address, what private and public IPs are, how the default gateway works, what DNS does, how to see which ports are open, and a simple 4-step test that finds most network problems. Bonus: how to set a static IP with Netplan, safely.
⏱ Chapters
0:00 The 4 things every server needs
0:23 Your IP address (ip -br a)
0:47 Private vs public IP
1:06 The default gateway (ip route)
1:21 DNS: names to numbers
1:41 Ports & open services (ss)
2:18 The 4-step network test
2:41 Static IP with Netplan
3:08 Common mistakes
3:31 Cheat sheet
3:49 Like & subscribe
4:00 Homework & up next
⌨️ Commands from this video
ip -br a your IP addresses (short view)
hostname -I just the IP address
ip route your default gateway
resolvectl status your DNS servers
ping -c 3 192.168.1.1 can I reach the router?
ping -c 3 8.8.8.8 can I reach the internet?
ping -c 3 ubuntu.com do names (DNS) work?
sudo ss -tulpn which ports are open, and by which program
sudo nano /etc/netplan/50-cloud-init.yaml network settings (static IP)
sudo netplan try test new settings, auto rollback after 120 s
sudo netplan apply make them permanent
🧭 The 4-step test: IP → router → internet → DNS. Where it breaks tells you what's broken.
⚠️ A service listening on 127.0.0.1 is only reachable from the server itself; 0.0.0.0 means from the network.
💡 Private ranges: 192.168.x.x, 10.x.x.x, 172.16–31.x.x
📺 Full course playlist:
◀ Previous – #8 Package Management: apt, snap & Updates: [EP8 LINK]
▶ Next – #10 SSH Like a Pro: Keys & Secure Login: coming soon
💬 Homework: find your server's IP, gateway and DNS server, run the 4-step test, and check which ports are open. Share your results in the comments!
👍 If this helped, like & subscribe, it keeps the course free.
© netacademy.ge
#Linux #UbuntuServer #SysAdmin