I have the following use case for debugging a PHP application:
Is is possible to use xdebug in this circumstance? How?
It is possible to establish a VPN but this is not an easy solution so I would prefer a simplified one.
The solution I found was to use PuTTY to forward the port 9000
from the server to the client (IDE).
Just configure the Xdebug to connect to the localhost
instead of an IP address your client (IDE) is running on:
xdebug.remote_host = localhost
xdebug.remote_port = 9000
xdebug.remote_connect_back = 0
There is a nice article called Remote Debugging PHP with a Firewall in the Way describing this and also the Xdebug configuration and SSH port forwarding method.