如何查看计算机的端口号?

来源:百度知道 编辑:UC知道 时间:2024/05/02 17:55:23

查看计算机端口用什么命令 用:netstat -a 在2000以上的操作 Displays protocol statistics and current TCP/IP network connections.
显示统计正在使用TCP/IP协议的网络联接 NETSTAT [-a] [-e] [-n] [-s] [-p proto] [-r] [interval] ?-a Displays all connections and listening ports.
显示所有的联接和正在侦听的端口 -e Displays Ethernet statistics. This may be combined with the -s option.
显示统计以太网信息。此参数可以与-s一起使用。 -n Displays addresses and port numbers in numerical form.
用表格形式显示地址和端口号 -p proto Shows connections for the protocol specified by proto; proto may be

netstat -a IP

开始--运行cmd--键入ipconfig--再ping+IP(IP由ipconfig可以得到)