Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are the best ways to determine what port an application is using?

This is an adapted version of a question from someone in my office. She's trying to determine how to tell what ports MSDE is running on for an application we have in the field.

Answers to that narrower question would be greatly appreciated. I'm also interested in a broader answer that could be applied to any networked applications.

like image 627
Scott Lawrence Avatar asked Sep 03 '08 17:09

Scott Lawrence


2 Answers

netstat -b

from the command line will display the application name, process owner, address, and port number used for all running applications.

like image 66
Bill the Lizard Avatar answered Nov 07 '22 03:11

Bill the Lizard


I've always liked the sysinternals app TCPView, which can now be found here. Good luck.

like image 31
Rydell Avatar answered Nov 07 '22 02:11

Rydell