View Single Post
  #2 (permalink)  
Old 08-02-2007, 03:51 PM
brianhks brianhks is offline
Senior Member
 
Join Date: Jul 2007
Posts: 134
brianhks will become famous soon enough
depends on the platform. You can use netstat. Maybe you mean to do it programatically. I don't know of a way to do that.

One option is to set a socket factory on the ServerSocket class. Then it will call your factory every time a socket is asked for. This way you can keep track of what sockets are out.
Reply With Quote