title: IntelliJ Unable to remote debug Tomcat
body: <p>I am using IntelliJ 2018.1 to try and debug a remote instance of Tomcat. I followed the directions to setup tomcat here:
  <a href="https://confluence.sakaiproject.org/display/BOOT/Setting+Up+Tomcat+For+Remote+Debugging" rel="nofollow noreferrer">https://confluence.sakaiproject.org/display/BOOT/Setting+Up+Tomcat+For+Remote+Debugging</a></p>
  
  <p>And I put these startup parameters in the JAVA_OPTS for the Tomcat process.</p>
  
  <pre><code>-agentlib:jdwp=transport=dt_socket,address=62666,suspend=n,server=y
  </code></pre>
  
  <p>Tomcat is running on a Unix system and when the Tomcat process starts it successfully shows that port 62666 is being listened to. I setup the IntelliJ debug configuration to point to the correct IP and the 62666 port when I start debug.</p>
  
  <p>When I actually run the debugger I get the error:</p>
  
  <pre><code>9:23 AM Error running 'Remote INT3': Unable to open debugger port (10.5.0.57:62666): java.net.ConnectException "Connection refused: connect"
  </code></pre>
  
  <p>When I look at netstat on the remote machine it shows that my local machine is successfully connected to the port 62666. But IntelliJ is obviously not registering that. What is going wrong?</p>