I have a web application deployed to a remote resin server, and it has JMX turned on.
I can telnet to the remote server i.e
franz@see:/tmp$ telnet &l
I was having similar issue that remote machine was behind firewall and firewall was blocking ports defined by -Dcom.sun.management.jmxremote.port and RMI 46924. After allowing me to cnnect to these port I connected succesfully.
-Dcom.sun.management.jmxremote.port
46924