Solved

How can I determine which port a program is running on?

Posted on 2007-04-06
6
242 Views
Last Modified: 2010-04-18
How can I determine which port a program is running on?  I did a vulnerability scan on one of my servers and port 5250 is open.  This is a port used by various trojans.  I would like to see what program or service is using this port...........
0
Comment
Question by:gopher_49
  • 4
6 Comments
 
LVL 30

Accepted Solution

by:
LauraEHunterMVP earned 125 total points
ID: 18863777
On a 2003 server, run the following command: netstat -ano.  This will give you the port# and the Process ID of the .exe or service that is using it.  You can then look in Task Manager to determine which process corresponds to that Process ID.
0
 
LVL 17

Assisted Solution

by:John Gates
John Gates earned 125 total points
ID: 18863778
You can use utilities here:

http://www.microsoft.com/technet/sysinternals/default.mspx

You will find all kinds of useful utilities here for troubleshooting.

-D-
0
 
LVL 17

Expert Comment

by:John Gates
ID: 18863791
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 17

Expert Comment

by:John Gates
ID: 18863808
netstat -ano will do that as well but the sysinternals utilities give you a graphical view if you are not a "Command Line" kind of person ;-)

-D-
0
 
LVL 17

Expert Comment

by:John Gates
ID: 18863821
And i guess when you find a rouge process you could use:

TASKKILL /PID <program ID>
0
 

Author Comment

by:gopher_49
ID: 18863926
Thanks for both of your suggestions.  I used the 'netstat -ano' commmand some time ago, however, I forgot the syntax.  Also, I used the Sysinternals utilities in the past, however, it's been awhile.  This refreshed my memory and I'm now back on track.

Thanks!
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

776 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