xDebug > phpStorm ist listening on wrong IP-address

I have change the server - IDE-Client situation. (I know, don't change a running system! But I have to...)

Before, Server and IDE was both on a OSX MacBookPro. All was running fine.


with working xDebug
But xdebug_remote.log Entry :

Log opened at 2015-01-08 15:43:46
I: Connecting to configured address/port:
E: Time-out connecting to client. :-(
Log closed at 2015-01-08 15:43:46

PHPSTORM-IDE (8,02 on WIN8 Laptop in same LAN) FIX IP
I start debug-Listening with green phone but NO REAKTION IN IDE when I reload the site, or use the Bookmarklet ....

NETSTAT -a -n -o says:
Proto      Local                   Remote        State          PID
TCP     Listening     4936 (phpStorm.exe)
TCP     Listening     4936 (phpStorm.exe)
TCP     Listening     4936 (phpStorm.exe)
TCP     Listening     4936 (phpStorm.exe)
TCP     Listening     4936 (phpStorm.exe)
TCP     Listening     4936 (phpStorm.exe)
TCP     Listening     4936 (phpStorm.exe)
TCP     Close_Wait    4936 (phpStorm.exe)

---> I think the Problem is : IDE should listen on but this is missing.
I looked everywhere. In Preferences, in google and the jetBrain Docs but nowhere is written how can I change the Listening IP from TO Maybe I'm wrong. Have someone a solution for my problem. Maybe I missunderstud something with the IP's in netstat.

I would love to see:
TCP     LISTENING    4936 (phpStorm.exe)

Preferences in phpStorm:
Languages & Frameworks > PHP > Debug > Xdebug
Debug port: 9000
Can accept external connections [TRUE]
Force break at first line when path ... [TRUE]
Force break at first line when outside ... [TRUE]

Build Execution, Deployment > Deployment > macBookProServer
Connection Type SFTP
SFTP host:
Port : 22
RootPath : /
User name / Auth type / Password: ****
Test SFTP connection ... is DONE AND OK
Web server root URL: > OPEN is the right website and is running OK

Run/Debug Configurations > PHP Remote Debug > OwnServerName
Configuration :
SERVER: MacBookPro
IDE-Key: phpStorm


I did also a portforward in Router :  »Port 9000 To«. Nothing changes.

I hope someone has an hint for me.
Kind regards

Comment actions Permalink

Hi there,

I cannot speak about Mac (not a Mac user) .. but on Windows is enough. "" means that IDE listens on 9000 port on ALL interfaces.

I suggest to double/triple check your connectivity: maybe there is firewall somewhere between your computer with PhpStorm and the server one.).

To check your connectivity: on your server .. try connecting to your computer via telnet (to some another port first, not handled by PhpStorm).

You can use online checker services to see if your port is properly forwarded/opened in firewall to the rest of the world (that's if your server is a remote one -- somewhere on Internet and not local LAN or VM). That's especially important when you need to do port forwarding in your hardware router.

For example:

You can always try to connect via SSH to bypass possible firewalls (as it's an xdebug which connects to PhpStorm and not other way around). For example:

Comment actions Permalink

Hey Andriy,
again you are the candle-man in a stormy night.
The "" blinded me for the obvious. Newby on micro$soft :O (for a while - maybe). Thank you for the light!
Now I can see the idea behind four-zero-ip.
Without blindfould, the redwall jelled to me: Are you stupid? I'am your target ...
Yes, with a simple rule for port:9000 in the firewall it was done. Stupid I know.
But thanks to the four-zero-ip-blindfould, I learned a lot in xDebug, logging, server-config, portforwarding, phpstorm and the preferences, and not at least windows.
It runs, also without portforwarding.
Thanks to you and your help and : Apologize!

Kind regards


Please sign in to leave a comment.