Networking

Computer networks allow devices and applications to exchange data.

IP Addresses

An IP address identifies a network interface.

IPv4 addresses contain 32 bits and are commonly represented using four decimal numbers, for example:

192.168.1.10

TCP and UDP

TCP provides reliable and ordered data delivery.

UDP does not establish a reliable connection before sending data and has lower protocol overhead.

HTTP, HTTPS and SSH normally use TCP.

Ports

A port identifies a network service running on a host.

Common ports include:

  • 22 - SSH
  • 80 - HTTP
  • 443 - HTTPS

DNS

DNS translates domain names into IP addresses.

For example, a client can request the IP address associated with a domain before connecting to its web server.

HTTP and HTTPS

HTTP is an application protocol commonly used for communication between web clients and servers.

HTTPS protects HTTP communication using TLS encryption.

Firewall

A firewall controls network traffic according to configured rules.

On many Linux servers, UFW can provide a simplified interface for managing firewall rules.