The Short Answer
A server is a computer, or a program, that waits for requests and answers them. The device that sends the request is the client: a browser asking for a web page, an app fetching data, a mail program collecting messages. The word is used in two senses, and both are correct:
- The hardware sense: a machine built to run around the clock in a data center and serve many clients.
- The software sense: a program that listens on a network port and answers requests, such as a web server or a database server.
One physical server usually runs several server programs at once.
Client and Server
Every exchange follows the same pattern. The server program listens on a port; the client connects to the server's IP address and that port, sends a request, and receives a response. You can see the listening side on any Linux server:
sudo ss -tlnp
Each line is a program waiting for clients, with the address and port it listens on; see the ss command.
Server Software by Role
| Role | Examples | Ports |
|---|---|---|
| Web server | Nginx, Apache | 80, 443 |
| Database | MySQL, PostgreSQL | 3306, 5432 |
| Postfix, Dovecot | 25, 587, 993 | |
| DNS | BIND, Unbound | 53 |
| Remote access | OpenSSH | 22 |
The most common role is explained in what is a web server, and more ports are listed in common port numbers.
What Sets Server Hardware Apart
- ECC memory: corrects single-bit memory errors and detects many larger ones; see ECC RAM.
- Redundant power supplies and hot-swap disks: a failed part can be replaced while the machine runs.
- Remote management: a separate controller on the board allows power control and a console over the network, even when the operating system is down; see what is IPMI.
- Rack format: a flat case that mounts in a standard rack, with airflow from front to back.
- More of everything: more processor cores, memory slots, and drive bays than a desktop computer.
Physical and Virtual Servers
A physical server can serve one owner whole, as a dedicated or bare metal server, or a hypervisor can divide it into many virtual machines; see what is a virtual machine. A VPS is one of those virtual machines, with its own operating system and root access; see what is a VPS. The trade-offs between the two are in VPS vs dedicated server.
Where Servers Live
Most servers that serve the public run in data centers: buildings with stable power, cooling, physical security, and connections to many networks. You can rent a server there, or bring your own hardware and rent rack space, power, and a network connection, which is called colocation. A small server can also run in an office, but power cuts, a single internet line, and heat limit how reliable it can be.
Operating Systems
A large share of internet servers run Linux, in distributions such as Ubuntu, Debian, AlmaLinux, and Rocky Linux; see what is Linux. A server usually has no graphical desktop. You manage it from the command line, which uses less memory and leaves fewer programs to keep updated.
How You Reach a Server
You manage a Linux server over SSH, an encrypted remote terminal; see what is SSH and how to SSH into a server:
ssh user@your_server_ip
If the network fails, a console in your provider's control panel, or the remote management controller on physical hardware, still gives you a screen and keyboard. The first steps on a new server are in initial server setup.