Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Web Server Port Numbers Made Simple

Every web server listens on a port number. This guide explains what ports are and which ones web servers use.

Web Hosting2 min read2 steps

What is a port?

A server has one address, called an IP address. But it runs many services at once. A port is a numbered door on that address. Each service waits at its own door. Think of an apartment block. The IP address is the street address. The port is the flat number.

The main web ports

PortUsed for
80HTTP. Normal web pages with no lock.
443HTTPS. Web pages protected by SSL, the digital lock.
8080Often used as a second HTTP port or for test sites and apps.
8443Often used as a second HTTPS port.

Browsers use port 80 for http:// and 443 for https:// without showing it. That is why you never type the number for normal sites.

Other ports you may meet

  • 21: FTP, for uploading files.
  • 22: SSH and SFTP, for safe remote access and safe file transfer.
  • 25, 465, 587: sending email.
  • 110, 995: POP3 email.
  • 143, 993: IMAP email.
  • 3306: MySQL databases.
  • 2083: cPanel over HTTPS, on many hosts.

How to use a custom port

If a site runs on another port, add it after the address with a colon:

http://example.com:8080

This opens the site on port 8080.

How to check which ports are open

This needs root access on a Linux VPS or dedicated server.

  1. Connect to your server with SSH.
  2. Type the command below and press Enter.
ss -tulpn

This lists the open ports and the program using each one.

Warning: Do not close port 22 or the port you use to reach the server, or you may lock yourself out. Do not open ports you do not need. Each open port is one more door for attackers.

If a port is blocked

A firewall can block ports. A firewall is a guard that decides which traffic may enter. If your site does not open, ask Hostvento support to check the firewall. You can open a support ticket.

Tip: Use 443 for every public site. Browsers warn visitors about sites without it.

Quick recap

  • A port is a numbered door on a server.
  • Web uses 80 for HTTP and 443 for HTTPS.
  • Add :8080 style numbers to the address for custom ports.
  • Use ss -tulpn to see open ports.
  • Keep only the ports you need open.