Networking commands to check port

Document created by ruchika_yadav Employee on Jul 22, 2015Last modified by vreddy on Mar 1, 2016
Version 2Show Document
  • View in full screen mode
Here are some commands that you might need for troubleshooting port connectivity, find PID or run telnet

1. To check if port is available: Netstat -abn | find "portnumber"

 

2. Check if the ip is listening on a specific port : telnet iporhostname port

 

3. Check the listening port for that PID(mostly atom exe): netstat -a -o -n

 

4. show statistics for a specific protocol(UDP,TCP)  : netstat -p protocol -a

 

And for any reason if you want to save these results in a text file then after the command add  >results.txt
eg. Netstat -abn | find "portnumber" >results.txt

 

The results.txt will be saved in the directory from where you ran the command. 0EM40000000brbk

Attachments

    Outcomes