Networking Basics
IP addresses and names.
Most Linux computers live on a network. Servers especially. So before we connect to other machines, let's learn the handful of ideas that every network is built on.

- Linux lives on networks
- Especially servers
- A handful of ideas
Four ideas
Every computer on a network has an IP address, a number like one nine two dot one six eight dot one dot ten. Numbers are hard to remember, so names, like example dot com, are turned into addresses by DNS. A port is like a door number on a computer. Web servers use port eighty, or four four three. And localhost always means, this computer.
Ports worth knowing
A few port numbers come up again and again. Twenty two is SSH, for logging in remotely. Eighty is normal web traffic, HTTP. Four four three is secure web traffic, HTTPS. And five four three two is a common database, Postgres.
| Port | Used by |
|---|---|
| 22 | SSH: remote login |
| 80 | HTTP: web |
| 443 | HTTPS: secure web |
| 5432 | PostgreSQL database |
Summary
Computers have IP addresses, DNS turns names into addresses, and ports are doors for different services. Next, checking your own network from the terminal.
Key takeaways- IP address
- DNS
- Ports