<p>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.</p>

<p>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.</p>

[{'answer_id': 42147, 'author': 'Brian R. Bondy', 'author_id': 3153, 'author_profile': 'https://Stackoverflow.com/users/3153', 'pm_score': 2, 'selected': False, 'text': '<p>Download currports from <a href="http://www.nirsoft.net/utils/cports.html" rel="nofollow noreferrer">here</a>.</p>\n\n<p>It will show you which ports are open and which processes are associated with each port.</p>\n\n<p>Scroll down to:\nDownload CurrPorts</p>\n'}, {'answer_id': 42152, 'author': 'Bill the Lizard', 'author_id': 1288, 'author_profile': 'https://Stackoverflow.com/users/1288', 'pm_score': 4, 'selected': False, 'text': '<pre><code>netstat -b\n</code></pre>\n\n<p>from the command line will display the application name, process owner, address, and port number used for all running applications.</p>\n'}, {'answer_id': 42174, 'author': 'Jeremy', 'author_id': 3657, 'author_profile': 'https://Stackoverflow.com/users/3657', 'pm_score': 3, 'selected': False, 'text': '<p>netstat -b is a great answer, you may need to use the -a option as well.</p>\n\n<p>Without -a netstat shows active connections, with -a it shows listening ports with no active clients as well.</p>\n'}, {'answer_id': 42196, 'author': 'Rydell', 'author_id': 2885, 'author_profile': 'https://Stackoverflow.com/users/2885', 'pm_score': 4, 'selected': True, 'text': '<p>I\'ve always liked the sysinternals app TCPView, which can now be found <a href="http://technet.microsoft.com/en-us/sysinternals/bb897437.aspx" rel="noreferrer">here</a>.  Good luck. </p>\n'}]
['https://Stackoverflow.com/questions/42146', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3475/']