Skip to main content
Home/Blog/What are well-known ports vs registered ports?
Networking

What are well-known ports vs registered ports?

Learn the difference between well-known ports and registered ports, their use cases, and how they

By Inventive HQ Team•
What are well-known ports vs registered ports?

Well-known ports (0–1023) and registered ports (1024–49151) are both assigned by the Internet Assigned Numbers Authority (IANA). Well-known ports include core internet services (HTTP on 80, HTTPS on 443, SSH on 22, DNS on 53). Unix-like systems normally restrict binding below 1024, while Windows does not generally use that cutoff. Registered ports include databases and application servers (MySQL 3306, PostgreSQL 5432, HTTP-alternate 8080). A third range, dynamic or ephemeral ports (49152–65535), is reserved for private use and often used for short-lived outbound connections; operating systems may use different ephemeral ranges.

That is the summary an AI Overview gives you. What it can't give you is the why — why the 1024 boundary exists, how the ranges map to firewall policy, and which range your own application should claim. The comparison table, the interactive port lookup, and the range-by-range breakdown below make this the definitive version.

Understanding Port Ranges and Categories

Network ports are organized into three distinct ranges, each with different purposes, restrictions, and management. The 16-bit port field gives every host exactly 65,536 ports (0–65535), and IANA divides that space into well-defined categories that reflect both historical conventions and modern security practices.

The port number line divided into three IANA ranges A horizontal number line from 0 to 65535 split into well-known ports 0 to 1023, registered ports 1024 to 49151, and dynamic ephemeral ports 49152 to 65535. The 65,536-Port Number Line IANA service ranges · Unix privilege rules vary Well-known 0 – 1023 Registered 1024 – 49151 Dynamic 49152 – 65535 0 1024 49152 65535

Unix: privilege often needed No privilege needed OS-assigned IANA assigned IANA assigned Never assigned

Well-Known Ports (0-1023)

Well-known ports are reserved for established services widely used across the internet. The name reflects their historical precedence—these ports were allocated early in internet development for services everyone needed.

Access Restrictions: Unix-like systems normally require privilege or a capability to bind below 1024. Windows does not generally impose this numeric cutoff. Port restrictions alone do not authenticate a service.

On many Unix-like systems, a web server needs the appropriate privilege to bind port 80. Clients still need other checks, such as TLS certificate validation, to verify the server they reach.

IANA Management: The Internet Assigned Numbers Authority (IANA) manages well-known port assignments through a formal registration process. Organizations request specific ports for their services.

Examples of Well-Known Ports:

  • Port 22: SSH (Secure Shell)
  • Port 25: SMTP (Simple Mail Transfer Protocol)
  • Port 53: DNS (Domain Name System)
  • Port 80: HTTP (HyperText Transfer Protocol)
  • Port 110: POP3 (Post Office Protocol)
  • Port 143: IMAP (Internet Message Access Protocol)
  • Port 443: HTTPS (Secure HTTP)

Registered Ports (1024-49151)

Registered ports are assigned to applications requesting them through formal registration with IANA. They do not have the usual Unix low-port restriction, though local policies can still limit binding.

IANA Registration: Organizations can formally request registered port assignments for their applications. The request includes information about the service and protocol. Once approved, the assignment is published.

Flexibility: Because no special privileges are required, registered ports are often used for:

  • Custom applications
  • Internal corporate services
  • Non-standard protocol implementations
  • Development and testing

Examples of Registered Ports:

  • Port 1433: Microsoft SQL Server
  • Port 3306: MySQL
  • Port 5432: PostgreSQL
  • Port 5900: VNC (Virtual Network Computing)
  • Port 8080: HTTP Alternate
  • Port 8443: HTTPS Alternate
  • Port 27017: MongoDB
  • Port 6379: Redis

Dynamic/Private Ports (49152-65535)

Dynamic ports are unassigned and available for temporary use or private applications. These ports have minimal restrictions.

Operating System Assignment: When applications need a port temporarily, the operating system often assigns a port from the dynamic range. Once the connection closes, the port is released for future use.

Private Use: These ports are often used for private, non-standard applications that don't need official registration.

Advantages:

  • No formal registration needed
  • Suitable for testing and development
  • Ideal for temporary or experimental services
  • Reduces conflicts between different organizations

Comparing the Ranges

CategoryRangeWho assignsRequires privilegeTypical examplesWhen to use
Well-known (system)0–1023IANA (formal)Usually on Unix-like systems22 (SSH), 25 (SMTP), 53 (DNS), 80 (HTTP), 443 (HTTPS)Standardized services in this range
Registered (user)1024–49151IANA (formal, on request)No1433 (SQL Server), 3306 (MySQL), 5432 (PostgreSQL), 8080 (HTTP-alt), 27017 (MongoDB)The default choice for your own apps and internal services
Dynamic (private / ephemeral)49152–65535Not assigned by IANANo special numeric restrictionOften client side of outbound TCP/UDP connectionsCoordinate with local ephemeral-port use if binding a fixed service

Which range should you pick for your own service? Choose an available port and check the IANA registry and your system's ephemeral range for conflicts. A fixed service can use a port in the dynamic range if local allocation is coordinated.

Not sure whether a given port number is well-known, registered, or already claimed by a common service? Look it up:

Port Reference

Comprehensive network port reference database with search - 5,900+ ports

Open the full Port Reference tool →
Loading interactive tool...

Why This Organization Matters

Security: On Unix-like systems, low-port restrictions limit who can bind standard ports. Authenticate services independently; the port number is not a security guarantee.

Standardization: Formal IANA registration ensures different organizations don't assign the same port to conflicting purposes. Without it, chaos would result from port conflicts.

Flexibility: The dynamic range allows innovation without formal processes. New applications can use dynamic ports immediately without waiting for IANA approval.

IANA Port Registration Process

Organizations can register ports formally through IANA. The process involves:

  1. Determining whether your service needs a well-known or registered port
  2. Submitting a formal request to IANA including:
    • Service name
    • Protocol (TCP, UDP, or both)
    • Description
    • Contact information
  3. IANA reviews and approves (or denies) the request
  4. Once approved, the assignment is published in the official port list

Common Port Assignment Conflicts

When organizations choose ports carelessly, conflicts arise:

  • Running a custom application on port 3306 (MySQL's port) creates confusion
  • Using port 8080 for your service when another standard service uses it
  • Not documenting your custom port assignments leads to forgotten purposes

Best practices:

  • Use documented standard ports when appropriate
  • Request IANA registration if your service needs standardization
  • Document custom port usage thoroughly
  • Avoid well-known ports for unrelated custom services to prevent conflicts with standard services

Special Ports

Some well-known ports have special significance:

Port 0: Reserved. Not used for actual services.

Port 1: Tcpmux, rarely used but technically reserved.

Port 23: Telnet, deprecated and insecure but technically reserved.

Ports 5000-5900: Used internally by MacOS, can cause conflicts with user applications.

Port Usage in Modern Applications

Web Applications: Usually use port 80/443 (standard) or 8080/8443 (alternative registered ports) for development.

Databases: Typically use registered ports:

  • MySQL: 3306
  • PostgreSQL: 5432
  • MongoDB: 27017

Custom Applications: Often use dynamic ports (>49152) during development, then request registered ports once stable.

Internal Services: Commonly use high-numbered ports (8000-9000 range) for internal tools not requiring internet exposure.

Configuring Firewall Rules by Port Category

Firewall configurations often differ by port category:

Well-known Ports: Often represent external services. Firewall rules explicitly allow/block each:

Allow TCP 443 (HTTPS)
Allow TCP 22 (SSH) from trusted IPs only
Block TCP 25 (SMTP) to prevent spam

Registered Ports: Often represent internal services. Firewalls might allow them internally but block externally:

Allow TCP 3306 (MySQL) from internal network only
Block TCP 3306 from internet

Dynamic Ports: Often used for temporary connections. Firewalls might:

Allow dynamic ports for outbound connections
Block dynamic ports for inbound (except established connections)

Port Usage Monitoring

Proper network administration involves monitoring port usage:

  • Discover which ports are open
  • Identify unexpected open ports
  • Map ports to services
  • Ensure port usage aligns with policies
  • Document port purposes

Tools for port monitoring:

  • netstat/ss: Show current connections
  • nmap: Scan for open ports
  • lsof: List open files and network connections
  • Wireshark: Capture and analyze network traffic

Ports and Network Segmentation

Port-based access control is a component of network segmentation:

  • Segment 1: Web servers (allow 80, 443)
  • Segment 2: Databases (allow 3306, 5432 from servers only)
  • Segment 3: Management (allow 22, 3389 from admin networks only)

Port restrictions help limit lateral movement in network compromises.

Evolution of Port Usage

Historically, well-known ports were the primary focus. As applications proliferated, registered ports grew dramatically. Today, dynamic ports are increasingly used as organizations deploy thousands of microservices.

Modern container orchestration systems (Kubernetes, Docker) often use dynamic port assignment, treating ports as ephemeral resources rather than fixed assignments.

Future of Port Assignments

As applications become more numerous and port space becomes more congested, some envision:

  • More extensive use of dynamic ports
  • IPv6 adoption providing more address space
  • Application-level service discovery replacing port-based location
  • Service meshes abstracting port management

However, for the foreseeable future, the well-known/registered/dynamic structure will persist.

Conclusion

The port numbering system organizes network communication through three categories: well-known ports (0-1023) for standard internet services, registered ports (1024-49151) for assigned applications, and dynamic ports (49152-65535) for temporary or private use. Unix-like low-port privilege rules do not apply uniformly across operating systems. IANA manages well-known and registered assignments. Proper port management—choosing appropriate ports, documenting usage, and monitoring activity—is essential for network operations.

Network Issues Slowing You Down?

DNS problems, latency, misconfigurations — our team monitors, troubleshoots, and optimizes network infrastructure 24/7.