Network ports are provided by the TCP or UDP protocols at the Transport layer. They are used by protocols in the upper layers of the OSI model. Port numbers are used to determine what protocol incoming traffic should be directed to.
Ports allow a single host with a single IP address to run network services. Each port number identifies a distinct service, and each host can have 65535 ports per IP address.
Port use is regulated by the Internet Corporation for Assigning Names and Numbers (ICANN). By ICANN there are three categories for ports:
- From 0 to 1023: well known ports assigned to common protocols and services
- From 1024 to 49151: registered ports assigned by ICANN to a specific service
- From 49152 to 65 535: dynamic (private, high) ports range from 49,152 to 65,535. Can be used by any service on an ad hoc basis. Ports are assigned when a session is established, and released when the session ends.
Well known ones are:
Port Number | Tipe | Function |
---|---|---|
21 | TCP/UDP | FTP |
22 | TCP/UDP | SSH |
23 | TCP/UDP | Telnet |
25 | TCP/UDP | SMTP |
66 | TCP/UDP | Oracle Sqlnet |
79 | TCP/UDP | Finger |
80 | TCP/UDP | HTTP / Web |
107 | TCP/UDP | Telnet service |
110 | TCP/UDP | POP3 |
118 | TCP/UDP | SQL service |
119 | TCP/UDP | NNTP |
137 | TCP/UDP | Net Bios name service |
138 | TCP/UDP | Net Bios datagram service |
139 | TCP/UDP | Net Bios Session Service |
150 | TCP/UDP | SQL / NET |
161 | TCP | Snmp |
194 | TCP/UDP | IRC (internet relay chat) |
209 | TCP/UDP | Quick Mail Protocol |
217 | TCP/UDP | bBASE Unix |
389 | TCP | NET Meeting |
407 | TCP/UDP | Timbuktu Pro |
443 | TCP | https |
445 | TCP | Microsoft-DS |
515 | TCP | Printer |
522 | TCP | NET Meeting |
531 | TCP/UDP | Conference |
992 | TCP/UDP | TeleNet SSL |
993 | TCP/UDP | IMAP4 SSL |
995 | TCP/UDP | POP3 SSL |
1417-1420 | TCP/UDP | Timbuktu pro |
1547 | TCP | LapLink |
3000 | UDP | Calista IP phone (saliente) |
3128 | TCP | Squid Proxy |
3389 | TCP/UDP | Microsoft Terminal Server |
4099 | TCP | AIM Talk |
5190 | TCP | Calista IP phone (entrante) |
5500 | TCP | Virtual Network Computing |
5631 | TCP | pcAnyWhere (host) |
5632 | UPD | pcAnyWhere (host) |
5800 | TCP | Virtual Network Computing |
5900 | TCPP | Virtual Network Computing |
6346 | TCP/UDP | SwapNut |
6891-6900 | TCP | MSN Messenger (archivos) |
6901 | TCP | MSN Messenger (voz) |
20000-20019 | TCP | ICQ |
28800 – 29000 | TCP | MSN Game Zone |