How to tell which port a process is listening on

Posted on 2004-11-08
Last Modified: 2011-09-20
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.
Question by:lhalkapeel
    LVL 6

    Expert Comment

    Default Port is usually 1414
    LVL 6

    Expert Comment

    Have you tried the dos command?

    netstat -a

    Hope this helps!
    LVL 4

    Expert Comment

    Try some freeware called FPort

    Description Follows:

    Identify unknown open ports and their associated applications
    Copyright 2002 (c) by Foundstone, Inc.

    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.


    FPort v2.0 - TCP/IP Process to Port Mapper
    Copyright 2000 by Foundstone, Inc.

    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 help
    /p sort by port
    /a sort by application
    /i sort by pid
    /ap sort by application path
    LVL 10

    Expert Comment

    Probably one of the best port viewers and it is free
    LVL 9

    Expert Comment

    LVL 3

    Expert Comment

    mrwebdev's right ,    netstat -a

    Author Comment


    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.

    LVL 15

    Expert Comment

    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

    LVL 20

    Accepted Solution

    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.

    LVL 87

    Expert Comment

    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).

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    I don't know if many of you have made the great mistake of using the Cisco Thin Client model with the management software VXC. If you have then you are probably more then familiar with the incredibly clunky interface, the numerous work arounds, and …
    Sometimes a user will call me frantically, explaining that something has gone wrong and they have tried everything (read - they have messed it up more and now need someone to clean up) and it still does no good, can I help them?!  Usually the standa…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    734 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

    23 Experts available now in Live!

    Get 1:1 Help Now