Port 80 is the IANA-registered default port for HTTP, the web's unencrypted protocol. When you type a plain web address with no port, your browser connects to port 80. Because traffic on port 80 is sent in plain text, modern sites use it only to redirect visitors to encrypted HTTPS on port 443, and to answer certificate checks.
Key takeaways
- Port 80 is the default TCP port for HTTP, the unencrypted web protocol.
- Traffic on port 80 is plain text, so anyone on the path can read or change it.
- A well-run public site uses port 80 only to redirect to HTTPS on port 443.
Type a plain web address into your browser, with no port number and no https in front of it, and your browser knows exactly where to knock: port 80. It is the front door the web was built with, and it is still open on almost every website. What happens after the knock, though, has changed completely.
What is port 80?
Port 80 is the IANA-registered default port for HTTP, the protocol browsers use to fetch web pages over the unencrypted web.
A port is a numbered logical endpoint that directs internet traffic to the correct service on a server. There are 65,535 port numbers, divided into well-known ports from 0 to 1023, registered ports from 1024 to 49151, and dynamic ports from 49152 to 65535. Port 80 sits in the well-known range, and binding to it needs administrator or root privileges on most systems.
The Internet Assigned Numbers Authority, IANA, lists port 80 under the service name http, described as World Wide Web HTTP. The assignment dates back to the early registries of the 1990s, and RFC 9110, HTTP Semantics, is the current standard that defines how HTTP works.
The number itself does nothing special. HTTP would work identically on any port. What the number buys is universal agreement, so a browser, a curl command and a monitoring probe all know where to knock without being told.
How does port 80 work?
Your browser opens a TCP connection to the server on port 80 and speaks HTTP, a plain-text protocol of requests and responses.
The exchange is simple enough to do by hand. The browser sends a request line with a method and a path, plus headers such as Host, which lets one server on one port 80 host many websites by routing on the name, not the address. The server answers with a status code, headers and the page itself.
Because HTTP needs reliable delivery, it runs over TCP, which performs a three-way handshake, sequences the data and retransmits anything lost. That reliability is why port 80 is a TCP port in practice, even though IANA also registers it for UDP.
Try it yourself with a command line. Running curl -I http://example.com sends a request to port 80, and on a modern site the answer is usually a 301 redirect pointing to the same address on HTTPS. That redirect is port 80's main job today.
What is the difference between port 80 and port 443?
Port 80 carries plain HTTP with no encryption, while port 443 carries HTTPS, which is HTTP protected by TLS encryption, and that difference changes everything about safety.
| Port 80 — HTTP | Port 443 — HTTPS | Port 8080 — alt HTTP | |
|---|---|---|---|
| Protocol | HTTP, plain text | HTTPS, TLS-encrypted | HTTP, plain text |
| Encrypted | No | Yes | No, unless TLS is added |
| IANA range | System, 0–1023 | System, 0–1023 | User, 1024–49151 |
| Default use | Redirects to HTTPS | Serving secure websites | Development, proxies, test servers |
| Browser display | Not secure warning | Padlock | Not secure warning |
| Needs admin rights | Yes, below 1024 | Yes, below 1024 | No |
On port 80, every byte is readable by any device between the browser and the server: the Wi-Fi network, the internet provider, or a network monitor. On port 443, TLS encrypts every byte before it leaves the browser, so an observer sees only that a connection exists, not what it contains.
That is why browsers now mark HTTP pages as "Not secure" and why search engines favor HTTPS sites. If your site still serves real content on port 80, check it with our free SSL checker and fix the redirect.
What is port 80 still used for?
On a correctly run public server today, port 80 does exactly two things: it redirects every visitor to HTTPS, and it answers certificate checks.
The redirect is usually a 301 or 308 status code pointing to the same address with https in front of it. A 301 tells browsers and search engines the move is permanent, so they remember it and go straight to HTTPS next time, especially once HSTS is enabled.
The second job is the ACME HTTP-01 challenge. Certificate authorities such as Let's Encrypt use port 80 to prove you control a domain before issuing or renewing a certificate. They place a token at a known path on your site and fetch it over port 80. If port 80 is closed, that check fails and the certificate cannot be renewed.
Outside the public web, port 80 still appears on local networks: a router admin page, a printer's web interface, or a development server on a laptop. Those are usually trusted networks, but the traffic is still unencrypted, so treat them with care on shared Wi-Fi.
Is port 80 safe?
No. Anything sent over port 80 is plain text and can be read, copied or changed in transit, so it must never carry passwords, payment details or session cookies.
An attacker on the same network can run a man-in-the-middle attack: intercepting the unencrypted request, altering the page that comes back, or injecting malicious content. A classic trick is to downgrade a visitor who typed the plain address, keeping them on HTTP instead of letting the redirect to HTTPS happen.
That risk is not theoretical. Public Wi-Fi is the most common setting, which is why our guide to how to secure your Wi-Fi starts with using HTTPS everywhere and avoiding sensitive logins on networks you do not control.
Port 80 itself is not malware, and having it open is not an infection. The danger is what travels over it. A server that only redirects on port 80, and serves nothing else, is following current best practice.
How do I check if port 80 is open?
You can check from the server itself, or from outside with a simple web request, and the two answers tell you different things.
On a Linux server, ss -tlnp lists the ports the machine is listening on, including whether a web server holds port 80. On Windows, netstat -ano does the same job. If nothing listens on port 80, the port is effectively closed.
From outside, curl -I http://example.com shows the response headers. A healthy public site answers with a 301 or 308 redirect to the https version. A 200 answer with real page content means the site is still serving over HTTP, which is a problem to fix.
Online port scanners can also test port 80 from the internet, but only scan systems you own or have permission to test. Scanning someone else's server without permission is not a harmless check.
For a broader website check, our free security headers checker looks at the headers your site sends, including HSTS, which tells browsers to use port 443 directly in future.
Should I open or close port 80?
Keep port 80 open on a public website, but only for redirects, and make sure nothing else is served on it.
Closing it outright breaks two things. First, visitors who type the plain address get a connection error instead of a redirect to your secure site. Second, ACME HTTP-01 certificate checks fail, so your HTTPS certificate cannot renew and your site eventually goes down.
The right configuration is narrow. Your firewall should allow inbound TCP on port 80, your web server should answer every request on it with a redirect to HTTPS, and HSTS should be enabled so browsers remember to use port 443. That setup is described in the port 80 vs 443 guide from SSLInsights, which reaches the same conclusion.
On a home network, the answer is different. You do not need to open port 80 on your router to the internet at all.
Port forwarding port 80 to a device inside your home exposes an unencrypted service to the whole internet, and it is one of the most common ways home servers get attacked. If you need remote access, use a VPN or a reverse proxy with HTTPS instead. See our small business cybersecurity checklist for the port-forwarding rules that apply to a home office too.
What are common port 80 mistakes?
The most common mistakes are serving real content on port 80, blocking the redirect, and forwarding the port from a home router without understanding the risk.
- Serving the site on both ports. If the same pages load on http and https, visitors and search engines split between them. Redirect all of it.
- A redirect loop. The server redirects port 80 to HTTPS, but the HTTPS site redirects back to HTTP. Check the redirect chain with curl before you call it done.
- Forgetting HSTS. Without it, every first visit still starts on port 80 and can be intercepted before the redirect happens.
- Blocking port 80 at the firewall. The site works for people who type https, but certificate renewals fail and plain-address visitors see an error.
- Exposing port 80 from home. Forwarding it to a camera, NAS or test server puts an unencrypted login page on the public internet.
Each of these is easy to test. Load the plain http address, watch where it lands, and confirm the final page is on HTTPS with a valid certificate.
The bottom line
Port 80 is the web's original front door: the default port for HTTP, defined by IANA and described in RFC 9110. It is not going away, because browsers and certificate authorities still need it.
Its job has shrunk to two tasks, though: redirecting visitors to HTTPS on port 443, and answering certificate checks. If your site does those two things and serves nothing else on port 80, you are using it correctly. Confirm your own setup with the free SSL checker.
Frequently asked questions
What is port 80 used for?
Port 80 is the default port for HTTP, the unencrypted protocol browsers use to fetch web pages. Today a well-run public site uses it mainly to redirect visitors to HTTPS on port 443, and to answer certificate authority checks.
Is port 80 the same as HTTP?
Almost. Port 80 is the port number assigned to HTTP by IANA, and HTTP is the protocol that runs on it. HTTP can run on other ports, but port 80 is the agreed default, so browsers use it when no port is given.
Is port 80 safe?
No, traffic on port 80 is not encrypted. Passwords, form data and session cookies sent over port 80 can be read or changed by anyone able to observe the connection, so it should never carry sensitive data.
What is the difference between port 80 and port 443?
Port 80 carries plain HTTP with no encryption. Port 443 carries HTTPS, which is HTTP protected by TLS encryption. Port 443 is the default for secure websites, and browsers show a padlock for it.
Should I close port 80?
Do not close it outright on a public website, because browsers and certificate authorities still use it. Keep it open only to redirect every request to HTTPS, and enable HSTS so browsers go straight to port 443 next time.
What is port 8080?
Port 8080 is an alternative HTTP port in the user range, often used for development servers, test sites and proxies when port 80 is taken or needs administrator rights. It is also unencrypted unless TLS is added.
How do I check if port 80 is open?
On a server, use a port scan or a command such as ss -tlnp on Linux to list listening ports. From outside, a request to the plain http address shows whether the server answers on port 80, usually with a redirect to HTTPS.
Does port 80 use TCP or UDP?
Port 80 uses TCP in practice, because HTTP needs reliable, ordered delivery. IANA also registers the port for UDP, but UDP port 80 is not used by web traffic.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against the IANA port registry, RFC 9110 on HTTP semantics, and current port 80 guides.
How we write and fact-check →