MENU
Language

Complete Guide to Default List and Types of Port Numbers – Managed by IANA

Port numbers are defined in the range of 0 ~ 65535 and are broadly divided into three categories.

categoryrangeexplanation
Well-Known Ports0 - 1023Reserved for major services and protocols
Registered Ports1024 - 49151Registered by a specific application or vendor
Dynamic/Private Ports49152 - 65535Used for temporary communication (automatically assigned by OS)
目次

List of major port numbers

1. Wellknown Port (0 – 1023)

Port Numberprotocoluse
20, 21FTPFile Transfer Protocol
22SSHSecure Shell (Remote Login)
23TelnetOutdated remote login protocol (deprecated)
25SMTPSend an email (for sending)
53DNSDomain Name System
67, 68DHCPAutomatic IP Address Assignment
80HTTPWebsite (non-SSL)
110POP3Receive emails (old)
119NNTPnewsgroup
123NTPNetwork Time Synchronization
143IMAPEmail reception (currently mainstream)
161, 162SNMPNetwork Monitoring
179BGPBorder Gateway Protocol
389LDAPDirectory Services
443HTTPSWebsite (SSL/TLS compatible)
465SMTPSSend Mail (SSL/TLS)
514SyslogSystem Log Forwarding
587SMTP (Auth)Send an email (with authentication)
993IMAPSEmail Receiving (SSL/TLS Supported)
995POP3SEmail Receiving (SSL/TLS Supported)

2. Registered Port (1024 – 49151)

Port Numberprotocoluse
1080SOCKSProxy Servers
1433MS-SQLMicrosoft SQL Server
1521OracleOracle Database
3306MySQLMySQL Database
3389RDPWindows Remote Desktop
5432PostgreSQLPostgreSQL Database
5900VNCVirtual Network Computing
6379RedisIn-memory databases
8080HTTP ProxyAlternate HTTP port (e.g., Tomcat)

3. Dynamic Ports (49152 – 65535)

  • Mainly used for temporary client connections (automatically assigned by OS)
  • Used by web browsers and applications to access a server
  • Example:
    • When a https://example.com client connects49152 to , it uses a port from below

Services where changing the default port is common

1. SSH (Default: 22)

  • Recommended: As a security measure, change to a different port (for example, 2222)
sudo nano /etc/ssh/sshd_config

Modified: yaml

Port 2222

Apply:

sudo systemctl restart sshd

2. HTTP/HTTPS(80, 443)

  • Enterprises and development environments often use 8080 and 8443
  • For example: Nginx or Apache to 8080

How to find out the port number

1. Check the port you are using (Linux / Mac)

netstat -tulnp

or

ss -tulnp

Search for a specific port

netstat -tulnp | grep 8080

2. Check the port in Windows

netstat -ano

Or search for a specific port:

netstat -ano | findstr :8080

3. Check Docker’s public port

docker ps

Example: PORTS value

0.0.0.0:5001->5000/tcp

This indicates that the container’s 5000 port number is mapped to the host’s 5001 .

IANA(Internet Assigned Numbers Authority)

IANA (Internet Assigned Numbers Authority) is an international organization that manages the allocation of IP addresses, domain names, port numbers, protocol numbers, and more used on the internet.

IANA is the organization that manages the core identifiers of the Internet and is responsible for three main areas:

ManagedsummaryRelated Links
Domain Name (DNS) ManagementManage root zones (e.g., TLDs: .com, .org, .jp)IANA DNS Root Zone
IP Address ManagementAssigning Global IP Addresses (Assigning to RIRs)IANA IP Address Allocations
Port Number and Protocol ManagementOfficial registration of TCP/UDP port numbersService Name and Transport Protocol Port Number Registry

Summary

Port Number Rangeuse
0 - 1023Well-known port (for standard service)
1024 - 49151Registered ports (for specific applications)
49152 - 65535Dynamic port (for temporary connection)

Commonly used ports:

  • Web Server: 80 (HTTP), 443 (HTTPS), 8080 (代替 HTTP)
  • Database: 3306 (MySQL), 5432 (PostgreSQL), 6379 (Redis)
  • Remote Connection: 22 (SSH), 3389 (RDP), 5900 (VNC)

References

Internet Assigned Numbers Authority (IANA): The organization that manages the official assignment of port numbers

RFC (Request for Comments): Standardized document

Example official document

Let's share this post !

Author of this article

AIアーティスト | エンジニア | ライター | 最新のAI技術やトレンド、注目のモデル解説、そして実践に役立つ豊富なリソースまで、幅広い内容を記事にしています。フォローしてねヾ(^^)ノ

Comments

To comment

目次