I found in the JPS command docs that we can set the RMI registry port in the host identifier.
I tried the following
jps XX.XXXX.X.XX:8725
It returns a weired error:
Malformed Host Identifier: XX.XXX.X.XX:8725
usage: jps [-help]
jps [-q] [-mlvV] [<hostid>]
Definitions:
<hostid>: <hostname>[:<port>]
Am I doing something wrong?
the key is "< hostname >" not IP
If I put my IP, I get the same response, but works if I put my host name.