This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes General Computing and the fly likes How do we know what application is running in what port Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "How do we know what application is running in what port" Watch "How do we know what application is running in what port" New topic
Author

How do we know what application is running in what port

Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Hi

I am using Windows . I am sometimes getting Address Already Bind .

So i am just asking how can we know what application is utilizing what port ??

Thanks you .


Save India From Corruption - Anna Hazare.
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

On Windows or Linux, use netstat. Or on Windows get TCPView from sysinternals.


JBoss In Action
Ravi Kiran Va
Ranch Hand

Joined: Apr 18, 2009
Posts: 2234

Thank you ,

I need to check what is running on Port 8080 , but when i used netstat -a on to the command prompt it is showing as


proto Local Address Foreign Address State
TCP ravi-5ec049acd6:8080 ravi-5ec049acd6:0 LISTENING


How can i check ??
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5812
    
    7

Try running



and see if that helps. Or use TcpView
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How do we know what application is running in what port
 
Similar Threads
Running different apps on different ports or 1 app per port
How many requests can handle a port at 'a' time
RMI connection problem
Ports and Protocols
How to know what and howmany application are running on a Port?