Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Find poert number

 
sam liya
Ranch Hand
Posts: 1240
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I nedd to know how to find what services run on port number 8080
 
Duc Vo
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by aruna sameera:
I nedd to know how to find what services run on port number 8080

Not sure if this is the right forum for your question, but at least should you tell what OS are you using?
 
vanlalhmangaiha khiangte
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
windows
You can do netstat -a through command prompt ...
Then see which service is running on 8080 ...
[ November 26, 2008: Message edited by: vanlalhmangaiha khiangte ]
 
Patel Chintan
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by vanlalhmangaiha khiangte:
windows
You can do netstat -a through command prompt ...
Then see which service is running on 8080 ...

[ November 26, 2008: Message edited by: vanlalhmangaiha khiangte ]


You can also find services running on your windows PC by using services.msc
Go to windows->run->services.msc
 
vanlalhmangaiha khiangte
Ranch Hand
Posts: 170
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

You can also find services running on your windows PC by using services.msc
Go to windows->run->services.msc


Tried it but how do we know which service is running on the port 8080
 
Duc Vo
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since you are using windows, you can use TCPVIEW and PROCEXP utilities from SysInternals here.

Or run on the command prompt
netstat /aon | find "8080"

The digits in the last column is the process id of the process service on the port. Use Windows Task Manager to find out what program is running with that process id, hence find out which service is running.

Anyway, if you are running Tomcat or JBoss or GlassFish, they typically serve on port 8080.
[ November 26, 2008: Message edited by: Duc Vo ]
 
Peer Reynders
Bartender
Posts: 2968
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that there is some confusion going around here.

"Windows Services" are a rough equivalent of Unix daemon processes. While a "windows service" may be listening to a port there is no requirement for a service to listen to anything.

services.msc is the Microsoft Management Console (MMC) snap-in for Services that lets you start, stop, enable, disable the various "windows services".

netstat.exe simply provides information on the currrently active TCP connections - it is capable of identifying the PID (Process ID) of the local program that is using a TCP connection or port. That PID could refer to a "windows service" or a regular program. If your web services stack is hosted by Tomcat, then the PID will identify the Tomcat process, regardless whether you started Tomcat from the console command line or as a "windows service".

I need to know how to find what services run on port number 8080

Given that this question is on the "web services" forum. I'm interpreting this to mean:

"How can I determine what web services are being offered on port 8080 - if any"

You may not have any way of finding out - some web service stacks make this information available in a way that is unique to them.

For example in Axis 1

Navigate to the start page of the webapp, usually http://127.0.0.1:8080/axis/, though of course the port may differ.
...
From the start page, select View the list of deployed Web services. This will list all registered Web Services, unless the servlet is configured not to do so. On this page, you should be able to click on (wsdl) for each deployed Web service to make sure that your web service is up and running.


Axis 2 also has the capability to list available services under an "Available Service" link like http://localhost:8080/axis2/listServices.jsp
[ November 26, 2008: Message edited by: Peer Reynders ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic