[jedi/old/i-menu.htm]
3TGKB-0047

Last Edited :

01-06-05

Revision :

 1.0


What Port Number Does an Application use?


Always asked question when configuring TCP/IP security of some sort.

 

TCP and UDP use port numbers from 0 - 65535 (16-bit) to identify an application.  The IANA or Internet Assigned Numbers Authority maintains a list at [http://www.iana.org/assignments/port-numbers] which describes which port number is used by an application.

The port numbers are divided into three ranges: the Well Known Ports, the Registered Ports, and the Dynamic and/or Private Ports.

 

Below you can click to see a capture of an HTTP packet clearly showing that it is using port 80.

 

Here is a couple of tables with some common Port Numbers you may need to know.

 

Port Protocol Application
20 TCP FTP Data
21 TCP FTP Control
23 TCP Telnet
25 TCP SMTP
53 TCP & UDP DNS
69 UDP TFTP
80 TCP HTTP
88 TCP & UDP Kerberos
110 TCP POP3
143 TCP IMAP
161 UDP SNMP
162 UDP SNMP Trap
389 TCP LDAP
443 TCP HTTPS
445 TCP SMB or CIFS
500 UDP IPSec isakmpIKE
1701 UDP L2TP
1723 TCP PPTP
3268 TCP LDAP Global Catalog
3389 TCP Remote Desktop Protocol
(Terminal Services)

 

Port Protocol Application
135 TCP Location Service
  • MS RPC
  • RPC EP Mapper
  • SQL RPC session mapper
  • WINS Manager
  • DHCP Manager
  • MS DTC
137 UCP NetBIOS Name Service
  • SQL RPC Lookup
  • Logon Sequence
  • NT 4.0 Trusts
  • NT 4.0 Secure Channel
  • Pass Through Validation
  • Browsing
  • Printing
  • SQL Named Pipes lookup
138 UCP NetBIOS Datagram Service
  • Logon Sequence
  • NT 4.0 Trusts
  • NT 4.0 Directory Replication
  • NT 4.0 Secure Channel
  • Pass Through Validation
  • NetLogon
  • Browsing
  • Printing
139 TCP NetBIOS Session Service
  • NBT
  • SMB
  • File Sharing
  • Printing
  • SQL Named Pipes session
  • Logon Sequence
  • NT 4.0 Trusts
  • NT 4.0 Directory Replication
  • NT 4.0 Secure Channel
  • Pass Through Validation
  • NT 4.0 Administration Tools
    (Server Manager, User Manager,
    Event Viewer, Registry Editor, Diagnostics,
    Performance Monitor, DNS Administration)
     

 

 

 

 If you wish to see the whole list then visit - Port Numbers at http://www.iana.org/assignments/port-numbers...

 

I hope this all helps?

 

Regards

Matt Rowston


KB Keywords:  TCP/IP, IP, Protocol Number, Firewall, packet filter, ICMP Type Numbers.