计算机 Windows 系统的端口有 65535 个,其中 1-1023 号为系统保留,其他可以自行分配。可以用 Windows 自带的 `netstat` 命令查看已开启端口。

```plaintext

  netstat [-a] [-e] [-n] [-s] [-p protocol] [-r] [interval]
  ```