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

4

14

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.

Foudroyant answered 3/9, 2008 at 17:25 Comment(0)
B
8

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

Billfish answered 3/9, 2008 at 17:45 Comment(0)
C
13
netstat -b

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

Cords answered 3/9, 2008 at 17:29 Comment(0)
B
8

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

Billfish answered 3/9, 2008 at 17:45 Comment(0)
M
6

netstat -b is a great answer, you may need to use the -a option as well.

Without -a netstat shows active connections, with -a it shows listening ports with no active clients as well.

Markusmarl answered 3/9, 2008 at 17:38 Comment(0)
F
2

Download currports from here.

It will show you which ports are open and which processes are associated with each port.

Scroll down to: Download CurrPorts

Flit answered 3/9, 2008 at 17:27 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.