Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

IPC between Native App and JAVA  RSS feed

 
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: 21048
85
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!