What Is Port 80?

Category: Networking & IP ยท Updated 2026-11-14

Port 80 is the standard network port reserved for unencrypted HTTP traffic between browsers and web servers. It was the default port for the web before HTTPS became standard, and today it is still open on most servers mainly so it can redirect visitors straight to the secure version of the site on port 443.

Where port 80 comes from

Port 80 was assigned by IANA as the well-known port for the Hypertext Transfer Protocol (HTTP) in the early days of the web, before encryption was common. A browser that types a URL starting with http://, or no protocol at all, connects to port 80 by default unless told otherwise. Port 443, used for HTTPS, was added later once encrypting web traffic became standard practice.

What port 80 is used for today

  • Automatic redirects: most web servers accept the connection on port 80 only to immediately send back a 301 redirect to the same page on https://.
  • Domain validation: some SSL certificate issuance methods, including certain Let's Encrypt validation checks, briefly use port 80 to confirm control of a domain before issuing a certificate.
  • Legacy or internal tools: a few older applications or internal dashboards still serve plain HTTP, though this is discouraged for anything handling sensitive data.

Port 80 vs. other common web ports

PortProtocolTypical use
80HTTPUnencrypted web traffic, now mostly used to redirect to HTTPS
443HTTPSEncrypted web traffic, the modern default
8080HTTP (alternate)Common for local development servers or app servers behind a proxy

Setting up a redirect from port 80 to 443

A properly configured server should still accept connections on port 80 and immediately redirect them, rather than closing the port entirely, since closing it can leave old links and bookmarks unreachable. A simple Nginx redirect block looks like this:

server {
    listen 80;
    server_name example.com;
    return 301 https://example.com$request_uri;
}

You can check that a redirect is working with a quick command-line request:

curl -I http://example.com

Frequently asked questions

What is port 80 used for?

Port 80 is the default port for unencrypted HTTP traffic. On most modern sites it is kept open only so it can redirect visitors to the secure HTTPS version of the site on port 443.

Is port 80 insecure?

Traffic sent over plain HTTP on port 80 is not encrypted, so data can be read or altered in transit. It is not dangerous by itself as long as the server redirects every request to HTTPS rather than serving sensitive content over it.

Should I close port 80 on my firewall?

Generally no. Keeping port 80 open and redirecting it to HTTPS is the standard approach; closing it entirely can break old links, some domain validation checks, and visitors who type a URL without https.

What is the difference between port 80 and port 443?

Port 80 carries unencrypted HTTP traffic, while port 443 carries HTTPS traffic encrypted with TLS. Browsers default to port 443 whenever a site supports HTTPS, which is now the case for nearly all public websites.

Can a website run only on port 80 without HTTPS?

Technically yes, but it is strongly discouraged. Browsers mark HTTP-only sites as "Not Secure," and any data submitted through forms or logins is sent unencrypted and can be intercepted.

Why does my browser briefly touch port 80 even when I type https://?

Some browsers or links still default to or test port 80 first in certain cases, such as following an old bookmark or an unqualified link, and a correctly configured server simply redirects that connection on to port 443.

Related topics