UFW Firewall setting

By default ufw is disabled on Ubuntu. All services are bound to the local interface(no place like home)

Incoming trafic for XDEBUG

If you have ufw enabled, which you should! Run the next command to allow traffic in:

sudo ufw allow in on docker0 from to port 9000 comment xdebug