Port Scanning Basics

Understand what ports are, how scanning works, and why it matters for security.

What Are Network Ports?

A network port is a numbered endpoint that identifies a specific process or service on a computer. When two machines communicate over a network, the IP address identifies the machine, and the port number identifies which application should handle the traffic. Ports range from 0 to 65535, giving over 65,000 possible endpoints per IP address.

Ports use two main transport protocols. TCP (Transmission Control Protocol) is connection-oriented — it establishes a reliable link with handshakes before data flows. Most services like web servers, email, and SSH use TCP. UDP (User Datagram Protocol) is connectionless — it fires packets without setup, making it faster but unreliable. DNS queries, streaming, and gaming often use UDP.

Common Ports You Should Know

Some port numbers are universally recognized. Here are the most important ones:

PortProtocolServiceWhat It Does
21TCPFTPFile transfer (legacy)
22TCPSSHSecure remote shell access
25TCPSMTPEmail sending
53TCP/UDPDNSDomain name resolution
80TCPHTTPUnencrypted web traffic
443TCPHTTPSEncrypted web traffic
3306TCPMySQLDatabase server
3389TCPRDPWindows Remote Desktop
8080TCPProxy/DevCommon proxy or dev server port

Port Ranges

Ports are divided into three categories:

How Port Scanning Works

Port scanning sends carefully crafted packets to a target and analyzes the responses to determine which ports are open, closed, or filtered. The most common scan types are:

Legitimate Uses of Port Scanning

Port scanning isn't inherently malicious. Security professionals and system administrators use it regularly:

Legal and Ethical Considerations

This is critical. Port scanning without permission is illegal in many jurisdictions and can be treated as unauthorized access. Here are the rules:

Try Our Port Scanner

Want to check which ports are open on your server? Our free Port Scanner tool lets you scan common ports from your browser — no installation needed.

Scan Ports Now →