I have an issue I can't manage to solve.
What I know :
- Some information about the process I'm looking for : It's a java process but if I have access to information similar to what's in
ps -ef | grep java
, then I can find it's PID. - The IP address of a remote machine running Linux version 3.16.7-35-desktop (SUSE Linux)
I would like to find the port used by that process on that machine, with some constraints :
- Must be done programmatically, in java
- Must work from Windows and Linux (if needed, the java code could handle both cases separately)
- Doesn't require to install any other application (neither on the caller machine nor on the remote one)
I also know the port should be between 10000 and 20000. I have network access to the remote machine (both machines are on the same subnet).
How would you do that ?
Note : I found this, but it's old and not remote.