The largest port number is an unsigned short 2^16-1: 65535

A registered port is one assigned by the Internet Corporation for Assigned Names and Numbers (ICANN) to a certain use. Each registered port is in the range 1024–49151.

Since 21 March 2001 the registry agency is ICANN; before that time it was IANA.

Ports with numbers lower than those of the registered ports are called well known ports; port with numbers greater than those of the registered ports are called dynamic and/or private ports.

Source

improve this answer
 

As I understand it, you should only use up to 49151, as from 49152 up to 65535 are reserved for Ephemeral ports

相关文章:

  • 2022-03-06
  • 2021-11-14
  • 2022-12-23
  • 2021-08-07
  • 2021-08-22
  • 2021-06-30
  • 2022-02-09
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-02-14
  • 2021-09-25
  • 2021-09-19
  • 2021-08-24
  • 2021-06-18
相关资源
相似解决方案