Solved

how to find PORT number of a particular program through command prompt

Posted on 2007-03-28
5
16,815 Views
Last Modified: 2012-05-05
Can anyone please tell me where I can find a command that shows what PORT number a particular program utilizes from "command prompt"?  I tried doing it from the C drive program files, but it does not work and have no idea how to do it from a command prompt.
thank you.
0
Comment
Question by:systems_ax
5 Comments
 
LVL 70

Expert Comment

by:KCTS
Comment Utility
The port or ports a program uses is dependant on the services it uses. There is no easy way to determine this but the netstat program may reveal some useful info see http://support.microsoft.com/kb/281336
0
 

Expert Comment

by:eger
Comment Utility
Hi,

From the command prompt using netstat and that -b switch will show the process PID and name for listening and active connections. An example from the cmd line would look something like: "C:\>netstat -anb".

Alternatively there is a utility called TcpView which gives listening sockets and process names with them in a easy to view list that also automatically updates itself. You can view and download the program here: http://www.microsoft.com/technet/sysinternals/Networking/TcpView.mspx

Hope this helps!
0
 
LVL 14

Accepted Solution

by:
Burns2007 earned 250 total points
Comment Utility
netstat -ab | find "LISTENING" <-- will show you what process ID is listening on a port.

netstat -ab will show all active ports and associated processes.
0
 
LVL 2

Expert Comment

by:jaredcall
Comment Utility
"netstat -b"

you might like "netstat -bn" better.

-jared
0
 
LVL 1

Author Comment

by:systems_ax
Comment Utility
Thank you
Burns2007
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
Possible fixes for Windows 7 and Windows Server 2008 updating problem. Solutions mentioned are from Microsoft themselves. I started a case with them from our Microsoft Silver Partner option to open a case and get direct support from Microsoft. If s…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now