#author("2022-05-09T10:57:39+09:00","default:ryuichi","ryuichi")
#author("2022-05-09T10:58:05+09:00","default:ryuichi","ryuichi")
* ポートをリッスンしているプロセスを探す [#m2026509]
PS> Get-NetTCPConnection -LocalPort 3000 | select OwningProcess
OwningProcess
-------------
12345
** 疎通確認だけ [#sb6f27db]
PS> Test-NetConnection localhost -Port 3000
WARNING: TCP connect to (::1 : 3000) failed
ComputerName : localhost
RemoteAddress : 127.0.0.1
RemotePort : 3000
InterfaceAlias : Loopback Pseudo-Interface 1
SourceAddress : 127.0.0.1
TcpTestSucceeded : True
- TcpTestSucceeded : ''True''
- TcpTestSucceeded : ''True'' → LISTENしてる