Link to home
Start Free TrialLog in
Avatar of lhalkapeel
lhalkapeel

asked on

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.
Avatar of mrwebdev
mrwebdev

Default Port is usually 1414
Have you tried the dos command?

netstat -a

Hope this helps!
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
Probably one of the best port viewers and it is free http://www.sysinternals.com/ntw2k/source/tcpview.shtml
mrwebdev's right ,    netstat -a
Avatar of lhalkapeel

ASKER

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!
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
ASKER CERTIFIED SOLUTION
Avatar of cpc2004
cpc2004
Flag of Hong Kong image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of rindi
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).