IBM Support

How can I check if an application is listening on a port and the application's name

Question & Answer


Question

How can I check if an application is listening on a port and it's name

Answer

In order to check which application is listening on a port, you can use the following command from the command line:
  • For Microsoft Windows:

    netstat -ano | find "1234" | find "LISTEN"
    tasklist /fi "PID eq 1234"

     
  • For Linux:

    netstat -anpe | grep "1234" | grep "LISTEN"


     

[{"Product":{"code":"SSC6Q5","label":"Rational Synergy"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"General Information","Platform":[{"code":"PF016","label":"Linux"},{"code":"PF033","label":"Windows"}],"Version":"7.1a;6.3;7.1.0.1;7.1;7.0;6.6a;6.5a;6.5;6.4","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
19 May 2022

UID

swg21443978