title: How to find the default JMX port number?
body: <p>I am running a Java application on Java 6 VM on a remote Windows XP, on which I can run jvisualvm.exe to connect to the running application automatically.</p>
  
  <p>Now I need to connect that application from my local computer, but I don't know the JMX port number of the remote computer. Where can I find it? Or, must I restart that application with some VM parameters to specify the port number?</p>
  
  <p>After reading the question <a href="https://stackoverflow.com/questions/7531211/how-to-find-the-jmx-port-in-a-server">How to find the JMX port in a server</a>, I executed the command on the remote computer</p>
  
  <pre><code>netstat -apn
  </code></pre>
  
  <p>but got nothing.</p>