Use JMX port for both remote and rmi