You may wish to take a look at the powerful (and free) Sysinternals
tools:
http://www.sysinternals.com
The application that will likely help you right away is their TCPView
utility:
http://www.sysinternals.com/ntw2k/source/tcpview.shtml
TCPView was designed to match TCP/UDP network activity to running
applications. It lists all of the running applications with network
activity, the local port they use, and the matching remote address and
port.
To use TCPView, you only need to download it into a local directory,
extract it from the containing zip file and double-click on it. If
your application is currently making its network connections, you
should see it in the list immediately.
Another free tool the Sysinternals group provides may also be useful
for you in analyzing the network traffic, especially if you have
multiple java VM's running (java.exe) and can't tell which is using
the port you are curious about. This utility is TDIMon, and it's found
here:
http://www.sysinternals.com/ntw2k/freeware/tdimon.shtml
TDIMon logs network traffic as it happens rather than analyzing the
connections already being held. Because of this, you can start TDIMon
and then quickly cause your java program to make it's connections.
Each network event from applications will be logged in the order
received, along with the local and remote ports.
A variety of software-based firewall applications may also help you
resolve this. For instance, I've used (in the past) the Sygate
Personal Firewall to help deduce which outgoing port is being used by
a particular application. The different editions of their firewall
software have different levels of logging traffic (to the point of IP
packet capture) that would help you tie network activity to a
particular application. You can download their free personal firewall
software here:
http://smb.sygate.com/products/spf_standard.htm
I was familiar enough with this topic that I didn't have to do much
searching, but I was able to use the following search terms to uncover
additional tools in this category that may help you:
"windows 2000" network monitoring tool
If this isn't the answer you're looking for, I encourage you to give
me an opportunity to clarify my answer. If this is the answer you're
looking for, happy hunting! |