title: Error running 'Remote Debugger': Unable to open debugger port (localhost:5005): java.net.ConnectException "Connection refused (Connection refused)"
body: <p>I am setting up remote debugger in IntelliJ on Mac. I followed the template without any modification. Then I click the "Debug xxx" button. It shows </p>
  
  <blockquote>
    <p>"Error running 'Remote Debugger': Unable to open debugger port
    (localhost:5005): java.net.ConnectException "Connection refused
    (Connection refused)""</p>
  </blockquote>
  
  <p>I checked the following:</p>
  
  <ol>
  <li>There is no port listening on 5005.</li>
  <li>The firewall is shut off entirely.</li>
  <li>I tried to ping localhost 5005 and the connection is refused.</li>
  </ol>
  
  <p>I am confused. There is no firewall and no port listening. Why the connection is still refused? </p>