title: Connect NetBeans to Xdebug on a Docker container
body: <p>I tried to connect NetBeans to Xdebug located in a container PHP within Ubuntu. </p>
  
  <p>The problem is that if I launch the container with the option <code>--net=host</code> everything is OK, but if I try use the default one (bridge), NetBeans can reach the container but the container can't reach my host environment.</p>
  
  <p>This is my xdebug ini conf:</p>
  
  <pre><code>xdebug.remote_enable=1
  xdebug.remote_connect_back=0
  xdebug.remote_handler=dbgp
  xdebug.remote_port=9000
  xdebug.profiler_enable=0
  xdebug.remote_log="/tmp/xdebug.log"
  </code></pre>
  
  <p>Notice that Xdebug log explicitly reports that xdebug can't find getadress.</p>
  
  <p>There is a way to connect a bridged container to host environment?</p>