AI Hints
Home›Linux Tutorial›Networking Basics
Linux · Lesson 91 of 120

Networking Basics

IP addresses and names.

⏱ 2 min read▶ Video at 2:01:41🎓 Free
Watch this lesson in the Linux courseWatch on YouTube ↗Full Linux course

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.

Networking Basics
From the video: Networking Basics
  • 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.

IP address192.168.1.10
DNSnames to addresses
Porta door: 22, 80, 443
localhostthis computer, 127.0.0.1

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.

PortUsed by
22SSH: remote login
80HTTP: web
443HTTPS: secure web
5432PostgreSQL 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
Next up: Your Network — ip, ping and host