aspose file tools*
The moose likes Sockets and Internet Protocols and the fly likes how to find out what program is listening on different ports? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark "how to find out what program is listening on different ports?" Watch "how to find out what program is listening on different ports?" New topic
Author

how to find out what program is listening on different ports?

shiva ghandi
Greenhorn

Joined: Aug 01, 2014
Posts: 1
hi guys
I am supposed to work on a monitoring program

i wonder how i should chase different sockets' activities?

i mean:
1. what program is listening on busy ports?
2.how much traffic does it make?
3.what data are these ports sending?

SOS
help me!

tnx
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 19063
    
  40

shiva ghandi wrote:
I am supposed to work on a monitoring program

i wonder how i should chase different sockets' activities?

i mean:
1. what program is listening on busy ports?
2.how much traffic does it make?
3.what data are these ports sending?


For one, take a look at "netstat". For two and three, take a look at "tcpdump", "WinPcap", etc. for capturing. Take a look at Wireshark for viewing. And ... if money is not an issue, Corvil and TS-Associates make some cool hardware based network monitors.

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to find out what program is listening on different ports?