1.windowsシステムportコマンドを表示します。netstat -ano
2.linuxシステムは、portコマンドを表示します。-netstat
#どこにポート番号8001 netstatコマンド乃至PAN | grepの8001