Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 2378
  • Last Modified:

How to tell which port a process is listening on

My client has MQ Series configured, but I am unable to reach personnel who can tell me which port MQ Series listens on.  I am trying to use an evaluation tool, MQ Batch Toolkit and am unable to connect because I don't have the correct port.  They are not using the default, 1414.
 Netstat does not show me the process associated with the port.  Appreciate any help.
0
lhalkapeel
Asked:
lhalkapeel
1 Solution
 
mrwebdevCommented:
Default Port is usually 1414
0
 
mrwebdevCommented:
Have you tried the dos command?

netstat -a

Hope this helps!
0
 
brownmattcCommented:
Try some freeware called FPort
http://www.foundstone.com/index.htm?subnav=resources/navigation.htm&subcontent=/resources/proddesc/fport.htm

Description Follows:

Identify unknown open ports and their associated applications
Copyright 2002 (c) by Foundstone, Inc.
http://www.foundstone.com 

fport supports Windows NT4, Windows 2000 and Windows XP
fport reports all open TCP/IP and UDP ports and maps them to the owning application. This is the same information you would see using the 'netstat -an' command, but it also maps those ports to running processes with the PID, process name and path. Fport can be used to quickly identify unknown open ports and their associated applications.

Usage:


C:\>fport
FPort v2.0 - TCP/IP Process to Port Mapper
Copyright 2000 by Foundstone, Inc.
http://www.foundstone.com


Pid Process Port Proto Path
392 svchost -> 135 TCP C:\WINNT\system32\svchost.exe
8 System -> 139 TCP
8 System -> 445 TCP
508 MSTask -> 1025 TCP C:\WINNT\system32\MSTask.exe
392 svchost -> 135 UDP C:\WINNT\system32\svchost.exe
8 System -> 137 UDP
8 System -> 138 UDP
8 System -> 445 UDP
224 lsass -> 500 UDP C:\WINNT\system32\lsass.exe
212 services -> 1026 UDP C:\WINNT\system32\services.exe

The program contains five (5) switches. The switches may be utilized using either a '/'
or a '-' preceding the switch. The switches are;

Usage:
/? usage help
/p sort by port
/a sort by application
/i sort by pid
/ap sort by application path
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
snerkelCommented:
Probably one of the best port viewers and it is free http://www.sysinternals.com/ntw2k/source/tcpview.shtml
0
 
paraghsCommented:
0
 
gerodimCommented:
mrwebdev's right ,    netstat -a
0
 
lhalkapeelAuthor Commented:
All,

Thanks you for your suggestions, but MQ Series is installed on a Solaris machine.  Netstat -a will not tell me the process associated with a port [unless I am not reading it correctly].  I know the name of the MQ process but cannot figure out it's port.
BTW, we have confirmed that it is NOT running on the default port, 1414.

Thanks!
0
 
Cyber-DudeCommented:
Sysinternals TCP View offered by snerkel is a good suggestion... You can use Process Explorer (from the same site) to verify which files are loaded while T/R is taking place

Cyber
0
 
cpc2004Commented:
lsof is a freeware which can display which port usage and the owner. I use lsof at AIX and I believe that lsof is also available at Solaris.


0
 
rindiCommented:
As far as I know solaris has an etc folder. look in there if you can find a configuration file for your MQ Series. Any port info would probably be in such a file, and those files usually are plain text files (you may need to root to have the rights to view some of these files).
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now