[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

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

How to identify which service is running on which port?

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
venkat2000120699
Asked:
venkat2000120699
1 Solution
 
LongbowCommented:
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
 
venkat2000120699Author Commented:
psservice.exe is showing the list of all services.  But it is not showing the ports locked by them.
thanks
0
 
SunBowCommented:
a) puList
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
SunBowCommented:
>  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
 
SunBowCommented:
c) netstat
netstat -n
netstat -a
(prepare for scrolling)
0
 
SunBowCommented:
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
 
venkat2000120699Author Commented:
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
 
SunBowCommented:
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
 
SunBowCommented:
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
 
SunBowCommented:
(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
 
SunBowCommented:
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
 
ymashCommented:
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
 
ITsheresomewhereCommented:
  ***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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

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