I had an issue similar to this while following the zero-config setup for xdebug but it was a setting of PhpStorm blocking external connections:
After unchecking this I was able to connect.