title: XDebug could not connect to client
body: <p>I am trying to debug with NetBeans Mac locally.</p>
  
  <p>This is my php.ini</p>
  
  <pre><code>[xdebug]
   xdebug.default_enable=1
   xdebug.remote_enable=1
   xdebug.remote_handler=dbgp
   xdebug.remote_host=localhost
   xdebug.remote_port=9000
   xdebug.remote_autostart=1
   xdebug.remote_log="/Applications/MAMP/logs/xdebug.log"
   xdebug.idekey="netbeans-xdebug"
   zend_extension="/Applications/MAMP/bin/php/php5.4.10/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so"
  </code></pre>
  
  <p>This is what I had been getting in xdebug.log</p>
  
  <pre><code>  I: Connecting to configured address/port: localhost:9000.
     E: Could not connect to client. :-(
  </code></pre>
  
  <p>I try changing the port to 9001 and turn off firewall and it didn't help.</p>