The server running PHP (and XDebug) needs to be able to connect to your workstation/desktop.
So you’ll need the server set up accordingly by either telling it to connect to a specific IP-address (xdebug.remote_host
) or to automatically “connect back” (xdebug.remote_connect_back
). The latter has some security implications, though. These are outlined in the manual.