title: Can't connect to remote JMX host
body: <p>Using VisualVM, there are two types I can see to connect remote host.</p>
  
  <ol>
  <li><p>jstatd</p></li>
  <li><p><strong>JMX</strong></p></li>
  </ol>
  
  <p>So I am trying to use <strong>JMX</strong>, I followed numerous tutorials but no luck so far.</p>
  
  <p>Currently, there's my desktop and one linux box with java server application running.
  I am trying to setup VisualVM client on desktop to see java application running on the linux box.</p>
  
  <p>I added following JAVA_OPTS script on start.sh script for the java application on linux.</p>
  
  <pre><code>JMX_PORT="-Dcom.sun.management.jmxremote.port=33333"  &lt;-- allowed on firewall
  JMX_SSL="-Dcom.sun.management.jmxremote.ssl=false"
  JMX_AUTH="-Dcom.sun.management.jmxremote.authenticate=false"
  JMX_IP="-Djava.rmi.server.hostname=xx.xx.xx.xx"   &lt;-- where linux box NAT ip.
  </code></pre>
  
  <p>Java application on linux was successfully started with jmx options added start.sh, I assume since there's no error or warning.</p>
  
  <p>When I tried to add JMX connection, it says it can't connect to it.</p>
  
  <p>I checked if 33333 is blocked, it's not, I was able to connect to that ip with port using telnet from my desktop.</p>
  
  <p>Is there any other port that I should open for VisualVM?</p>
  
  <p><strong>To use JMX, is there any other setup that I have to do such as RMI Registry server or jstatd policy file creation and start jstat daemon?? I thought it was for jstatd connection only so I didn't pursue that tutorial.</strong></p>