• Post Reply Bookmark Topic Watch Topic
  • New Topic

IPC between Native App and JAVA

 
Srinivas Kothuri
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?

Thanks in advance .. . !!

 
Rob Spoor
Sheriff
Posts: 20820
68
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!