LoginSignup
2
1

More than 5 years have passed since last update.

Windowsでポートを使っているプロセスを調べる

Posted at

Windowsでポートが既に使われていて起動できない場合に、使っているプロセスが何かを調べる方法(備忘録)

ポートのPIDを調べる

netstat -aon | findstr 0.0.0.0:[ポート番号]

PIDからタスクの詳細を調べる

tasklist /svc /fi "PID eq [ポート番号]"

これで何者かがわかり、ユーザプロセスならタスクマネージャーで強制終了すればよい。ただし、PIDが4でSystemプロセスの場合がある。
この場合は下記のサービスが怪しい。

  1. SQL Server Reporting Services (ReportServer)
  2. Web Deployment Agent Service (MsDepSvc)
  3. BranchCache (PeerDistSvc)
  4. Sync Share Service (SyncShareSvc)
  5. World Wide Web Publishing Service (W3SVC)
  6. Internet Information Server (WAS, IISADMIN)
2
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
1