View Issue Details

IDProjectCategoryView StatusLast Update
0001500XdebugStep Debuggingpublic2017-12-07 12:13
Reporterchadxz Assigned Toderick  
Status resolvedResolutionduplicate 
PlatformLinuxOSUbuntuOS Version16.04
Product Version2.5.5 
Summary0001500: remote_connect_back fails to connect when HTTP_X_FORWARDED_FOR contains comma-delimited ip addresses

remote_connect_back fails to connect when HTTP_X_FORWARDED_FOR contains comma-delimited ip addresses. This usually happens when the application is behind multiple proxies. In my case, the application is behind an HAProxy and an NGINX.

I would expect that it would pull the first ip address out of the list, as usually this is the one that represents the client's ip address (see

Steps To Reproduce
  1. Setup a php application with two levels of proxies, i.e. HAProxy -> NGINX -> apache php application
  2. configure xdebug for remote debugging with connect back: remote_enable=1 remote_connect_back=1
  3. visit php application with ?XDEBUG_SESSION_START=foo

see in the logs that it failed.

Additional Information

Relevant log output:

Log opened at 2017-12-06 18:43:51
I: Checking remote connect back address.
I: Checking header 'HTTP_X_FORWARDED_FOR'.
I: Remote address found, connecting to,
W: Creating socket for ',', getaddrinfo: Not a directory.
E: Could not connect to client. :-(
Log closed at 2017-12-06 18:43:51

TagsNo tags attached.
Operating System
PHP Version7.1.5-7.1.9


duplicate of 0000964 closedderick Xdebug does not parse X-Forwarded-For 



2017-12-07 10:51

administrator   ~0004503

This is a duplicate of, which got fixed and release as part of 2.6.0alpha1:


2017-12-07 12:13

reporter   ~0004504

Thanks, searched but didn't see it!

Issue History

Date Modified Username Field Change
2017-12-06 18:56 chadxz New Issue
2017-12-07 10:51 derick Note Added: 0004503
2017-12-07 10:51 derick Relationship added duplicate of 0000964
2017-12-07 10:51 derick Status new => resolved
2017-12-07 10:51 derick Resolution open => duplicate
2017-12-07 10:51 derick Assigned To => derick
2017-12-07 12:13 chadxz Note Added: 0004504
2020-03-12 16:33 derick Category Remote Debugging => Step Debugging