|
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.
|