title: Node.js WebStorm remote debugging not working (without SSH tunnel)
body: <p>I'm trying to debug on a live server running a Node.js webserver (Express, TypeScript).</p>
  
  <p>I run the node server with <code>NODE_ENV=development node --inspect=9229 --inspect-brk build/start.js</code>, and it says it's waiting and listening (<code>Debugger listening on ws://127.0.0.1:9229/a61485f2-aef8-4719-901d-4d5ad9d1e6cd</code>).</p>
  
  <p>I set up an SSH tunnel (using this method: <a href="https://gist.github.com/pajtai/081e0371e7366c79c0b9" rel="nofollow noreferrer">https://gist.github.com/pajtai/081e0371e7366c79c0b9</a>), and I set up an "Attach to Node.js/Chrome" debug configuration, with Host: <code>localhost</code> and Port: <code>9229</code>. Then when I hit the debug button, it connects through the SSH tunnel, and the node.js process runs just fine, stopping and debugging at all my breakpoints.</p>
  
  <p>However, when I don't set up the SSH tunnel, start the node server the same way, and set up an "Attach to Node.js/Chrome" profile with the host as the URL or IP of the server, WebStorm can never connect. There is a little red bubble over the "5: Debug" icon at the bottom saying it can't connect, and sometimes it says "Closed Explicitly". I have opened up port <code>9229</code> in the firewall settings for the server (I've tried TCP and UDP).</p>
  
  <p>What am I doing wrong? Please help, anyone!</p>
  
  <p>I'm using Mac OS X 10.15.3 and WebStorm 2019.3.1.</p>