aspose file tools*
The moose likes Web Services and the fly likes Find poert number Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "Find poert number " Watch "Find poert number " New topic
Author

Find poert number

sam liya
Ranch Hand

Joined: Nov 25, 2008
Posts: 1223
I nedd to know how to find what services run on port number 8080
Duc Vo
Ranch Hand

Joined: Nov 20, 2008
Posts: 254
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?


“Everything should be as simple as it is, but not simpler.” Albert Einstein
vanlalhmangaiha khiangte
Ranch Hand

Joined: Sep 11, 2006
Posts: 170
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

Joined: Mar 01, 2007
Posts: 80
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


Chintan Patel, SCJP1.5, http://datewithjava.blogspot.com
vanlalhmangaiha khiangte
Ranch Hand

Joined: Sep 11, 2006
Posts: 170

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

Joined: Nov 20, 2008
Posts: 254
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

Joined: Aug 19, 2005
Posts: 2922
    
    5
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 ]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Find poert number