Solved

How to identify which service is running on which port?

Posted on 2002-04-15
13
1,507 Views
Last Modified: 2012-06-21
Hi,

I need to identify the list of all the services and the ports they are using on both Windows and Linux operating systems.  Is there any utility/tool for doing this?

thanks in advacne,

Venkat.
0
Comment
Question by:venkat2000120699
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
13 Comments
 
LVL 10

Expert Comment

by:Longbow
ID: 6944516
If it is Win NT - 2K use the tool pslist.exe from the PSTools you will find here
http://www.sysinternals.com/ntw2k/freeware/pstools.shtml
0
 
LVL 2

Author Comment

by:venkat2000120699
ID: 6946702
psservice.exe is showing the list of all services.  But it is not showing the ports locked by them.
thanks
0
 
LVL 24

Expert Comment

by:SunBow
ID: 6948589
a) puList
0
Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

 
LVL 24

Expert Comment

by:SunBow
ID: 6948609
>  all the services and the ports they are using

b) I am sorry, but not all services use ports. There seems to be some misunderstanding.
0
 
LVL 24

Expert Comment

by:SunBow
ID: 6948620
c) netstat
netstat -n
netstat -a
(prepare for scrolling)
0
 
LVL 24

Expert Comment

by:SunBow
ID: 6948679
d) note, that the latter provides info on the remote, regardless of OS, whether VMS, Unix, MAC, linux, Sun, Apple, AMD or Intel, etc
0
 
LVL 2

Author Comment

by:venkat2000120699
ID: 6949575
None of them is showing service-port mapping.  When I tried to start WebSphere Single Server, it is giving error, saying "port 900 is in use.  Stop the service which is using that port.".  I have tried to stop all the services except some minimal required ones.  But it didn't workout.  If there is any utility that lists the service-port mapping, I can know which service is using port 900, and stop it.  Any suggestions?
0
 
LVL 24

Expert Comment

by:SunBow
ID: 6950679
If companies would behave, and use the Standards appropriately, or permit decent systems management (real info) then documentation can help, such as:

http://www.iana.org/assignments/port-numbers

Which shows:

omginitialrefs  900/tcp    OMG Initial Refs
omginitialrefs  900/udp    OMG Initial Refs
0
 
LVL 24

Expert Comment

by:SunBow
ID: 6950754
http://www.ec11.dial.pipex.com/port-num0.shtml#900
 "900 tcp udp omginitialrefs OMG Initial Refs @eng.sun.com "

http://www7b.boulder.ibm.com/wsdd/library/techarticles/0111_flurry/part2.html
"Figure 2. After clicking the Ports tab in the server configuration editor, this panel opens. Use this panel to change port numbers."

ans: WebSphere Application Server -

"You must change all the port numbers except for the Object level trace port. If your production WebSphere Application Server 4.0 is installed with the default port numbers (as it will be if you use the UDDI Registry installation process), simply add 2 to the other ports -- i.e. change 9000 to 9002, 7000 to 7002, 9070 to 9072 and 900 to 902."
0
 
LVL 24

Accepted Solution

by:
SunBow earned 50 total points
ID: 6950778
(in short, same product set is most likely:)

"When simultaneously running Web services in Application Developer and running UDDI Registry, as we do for this article, conflicts arise, as both instances of WebSphere Application Server 4.0 attempt to use the same set of IP ports. Fortunately, it is quite easy to configure the Application Developer WebSphere Test Environment to eliminate the port conflict by editing the WebSphere Application Server 4.0 configuration file named server-cfg.xml."
0
 
LVL 24

Expert Comment

by:SunBow
ID: 6950885
http://cgi.omg.org/issues/issue2885.txt :

"- There is already an well-known port number assigned to Christian Callsen <Christian.Callsen@eng.sun.com>:

omginitialrefs  900/tcp    OMG Initial Refs
omginitialrefs  900/udp    OMG Initial Refs"
0
 
LVL 1

Expert Comment

by:ymash
ID: 6960638
Or you can run a port scanner on that box. THat would give you all the open ports. superscan is a good one http://www.foundstone.com

0
 
LVL 3

Expert Comment

by:ITsheresomewhere
ID: 7102766
  ***Request for Closing Action and Input *****  

Hi venkat2000 and participating Experts

The reason for contacting you is that your help is needed in closing this question
and bringing the queue up to date. venkat2000, you will also be returning the courtesy
that Experts extended to you in responding to the original question.

Your choices are:

1. Select a comment which provided you with the solution or information needed to
 resolve the question.

2. Request a split of points among participating Experts by stating in a comment
which experts and in what amount each is to be awarded.   A Moderator will handle
the closing awards.   You may designate as many Experts as you wish.

Example 100 point question:

Please Split points to  (Expert1name) - 50 points, (Expert2name)- 50 points


3. Request the question be Closed and PAQ for 0 points if you resolved it yourself,
 or if no solution was found.

To do this go to http://www.experts-exchange.com/commspt/   
Post a 0 point question, requesting closing assistance.  Include your reasoning
and a reference to this question - copy and paste this question URL shown above.

Please also post your comment here as to why to inform the participating Experts.

I realize that two and three are a bit of a bother, but it is necessary and simplification
is in the works.

Experts-Exchange really does appreciate your cooperation.

Again thanks    - DO NOT ACCEPT THIS COMMENT AS THE ANSWER


ITsheresomewhere
EE Database Cleanup Volunteer


EXPERTS - Please monitor this question in the event that additional information or
clarification is needed by the Asker.  Your assistance in bringing this question to a
close is, as always, greatly appreciated.
          *****If you have closing suggestions please make them now. *****
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

This article will explain how to establish a SSH connection to Ubuntu through the firewall and using a different port other then 22. I have set up a Ubuntu virtual machine in Virtualbox and I am running a Windows 7 workstation. From the Ubuntu vi…
Windows 10 is here and for most admins this means frustration and challenges getting that first working Windows 10 image. As in my previous sysprep articles, I've put together a simple help guide to get you through this process. The aim is to achiev…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

707 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