How do I check if a port is running?

How do I check if a port is running?
Answer
In order to check which application is listening on a port, you can use the following command from the command line:
  1. For Microsoft Windows: netstat -ano | find “1234” | find “LISTEN” tasklist /fi “PID eq “1234”
  2. For Linux: netstat -anpe | grep “1234” | grep “LISTEN”
 

Tìm kiếm

Back
Top