Find ports of an application — Check on which port program is listening
In my previous post I was discussing how busy port created an issue while i was trying to start apache web server. Later i learned how to know which program or application is using which port.
1. Windows Machine:
Run following command on command line:
C:\> netstat -anb
-a Show all
-b Show application
-n Show numerical port number
Learn more by viewing the help:
C:\> netstat --help
2. Linux Machine:
Run following command on command line:
# netstat -pan
-a Show all
-p Show program
-n Show numerical port number
Learn more by viewing the help:
# man netstat
Most Commented Posts
If you enjoyed this post, please consider to leave a comment or subscribe to the feed and get future articles delivered to your feed reader.



Comments
No comments yet.
Leave a comment