Hi,
I have a native application in windows that listens on a socket to which the data will be pushed from java application.
Can somebody suggest a best way to find the port number on which the native app is listening to?
Opening a command prompt and executing "netstat -a" should get you at least some results. If you need to do this from code that's trickier, you will need JNI but I haven't found out how to get the ports for a process myself yet.