What Are the Most Common Port Numbers? 22, 80, 443, 3306, and More
Updated: October 13, 2026 · AracMerkezi
▶ Open Common Port Numbers Reference
If an internet address (IP) is a building's street address, a port is the door number in that building. A website, email, and a database can all run on the same server at once; the port number determines which request goes to which application.
What is a port?
A port is a number between 0 and 65535. It is divided into three groups:
- 0–1023 (well-known): Reserved for standard services, such as HTTP and SSH.
- 1024–49151 (registered): Ports that applications use by registration, such as databases.
- 49152–65535 (dynamic): Ports assigned temporarily while a connection is being made.
TCP and UDP
Ports work with two transport protocols. TCP establishes a connection and ensures the data arrives completely (web, email, SSH). UDP is connectionless, faster, but gives no delivery guarantee (DNS queries, live streaming, games). Some services use both; DNS is one of them.
Common port numbers
| Port | Service | Description |
|---|---|---|
| Port | Service | Description |
| 20, 21 | FTP | File transfer (unencrypted) |
| 22 | SSH | Secure remote connection and SFTP |
| 25 | SMTP | Email between servers |
| 53 | DNS | Domain name resolution |
| 80 | HTTP | Unencrypted web traffic |
| 110 | POP3 | Receiving email |
| 143 | IMAP | Receiving email |
| 443 | HTTPS | Encrypted web traffic |
| 465, 587 | SMTP | Sending email (authenticated) |
| 993, 995 | IMAPS, POP3S | Receiving encrypted email |
| 3306 | MySQL | Database |
| 3389 | RDP | Remote desktop |
| 5432 | PostgreSQL | Database |
| 6379 | Redis | Cache |
| 8080 | HTTP alternate | Development and proxy |
| 27017 | MongoDB | Database |
These values are defaults; administrators can move services to different ports.
Ports in a URL
In browser addresses, the port is specified with a colon: http://localhost:3000. Since 80 is the default for HTTP and 443 for HTTPS, they are usually left out. To break an address into its parts, the URL Parser tool is useful.
Security notes
- Close ports that do not need to be exposed to the internet (especially database and remote desktop ports).
- Allow only the ports you need in your firewall.
- Use encrypted counterparts (SFTP, SSH, HTTPS) instead of unencrypted protocols (FTP, Telnet, HTTP).
- Changing the port does not provide security on its own; the real protection is strong authentication and up-to-date software.
- Scanning other people's systems without permission may be illegal; test only your own systems.
Example
If a web application on a development server runs on port 8080, the address is http://server-ip:8080. In the firewall, only 22 (for administration, from specific IPs) and 443 are left open; the database on 3306 stays reachable only from the internal network.
Where do port numbers show up in everyday life?
- Local development: addresses like
localhost:3000andlocalhost:8000. - Remote server administration: connecting to port 22 over SSH.
- Email client settings: entering 993 for IMAP and 587 for SMTP.
- Firewall rules and port forwarding settings.
Common mistakes
Opening the database port to the entire internet, using unencrypted FTP for real data, and not changing default passwords are the most common mistakes. If a service is not working, first check that it is listening on the right port, that the firewall allows it, and that the address is typed correctly.
Tools
The Common Port Numbers Reference searches by number or service name. To calculate network ranges, use the IP / CIDR Subnet Calculator; for web response codes, use the HTTP Status Codes Reference.
Frequently asked questions
Which port do HTTP and HTTPS use?
HTTP uses port 80 by default, and HTTPS uses port 443.
What are the SSH and MySQL ports?
The default is port 22 for SSH and port 3306 for MySQL; administrators can change them.
Does changing the port provide security?
Not on its own; the real protection is a firewall, strong authentication, and up-to-date software.
Tools mentioned in this guide
More guides
- What Are HTTP Status Codes? 200, 301, 404, 500 and Troubleshooting – What do HTTP status codes mean? Codes 200, 301, 404, 500, testing with curl, the cost of redirect chains, soft 404s and site-migration examples.
- What Are an IP Address, CIDR and a Subnet Mask? How Many Addresses Is /24? A Calculation Method – How do you calculate CIDR notation and subnet masks? The block-size method, network and broadcast addresses, splitting into subnets and private ranges.
- What Is curl? Basic Flags and Converting a curl Command to fetch – What is curl and what do the -X, -H and -d flags do? A POST request example, the JavaScript fetch equivalent of a curl command, and debugging tips.
- How to Calculate Percentages: Six Question Types, Formulas and Examples – Percentage math: percent of a number, what percent one is of another, increase and decrease, percentage points and reverse percentages, with examples.
- How to Calculate VAT: VAT-Inclusive and VAT-Exclusive Formulas and Examples – How do you separate VAT from a VAT-inclusive amount or add it to a VAT-exclusive one? Formulas, a mixed-rate invoice, rounding gaps and shortcuts.
This article is for general information only and is not legal, financial or medical advice. We are not an official institution.