i think i have a port issue :
my Windows IP as seen by docker seems to be 10.0.75.1 (PHP shows 10.0.75.1 for $_SERVER[‘REMOTE_ADDR’])
PHPStorm is listening to xdebug on port 9000.
therefore, when I telnet 10.0.75.1 9000 from windows it connects successfully when PHPStorm is listening and returns this error when it is not listening : “Could not open connection to the host on port 9000 : connect failed” . This makes perfect sense.
My web container is defined like this in docker-compose.yml :
web:
build: php5
ports:
- "80:80"
- "9000:9000"
And PHP shows 10.0.75.1 for $_SERVER[‘REMOTE_ADDR’] . From this web container I can ping and telnet successfully 10.0.75.1 on port 80 but on port 9000 it returns an error whether PHPStorm is listening or not :
root@fd60276df273:/var/www/html# telnet 10.0.75.1 9000
Trying 10.0.75.1...
telnet: Unable to connect to remote host: Connection timed out
Windows firewall is off. Do you know what could cause this issue ?