[xdebug-general] Re: Waiting for Xdebug session

From: Derick Rethans <derick[@]xdebug.org>
Date: Thu, 18 Mar 2010 12:14:23 +0000 (GMT)

On Thu, 18 Mar 2010, Thierry CHEN wrote:

> Derick Rethans <derick[@]xdebug.org> a écrit:
>
> >> > - whether you can telnet to "127.0.0.1 9000".
> >>
> >> No:
> >> proliant:/etc/php5/apache2# netstat -a | grep 9000
> >> tcp6       0      0 [::]:9000               [::]:*                  LISTEN
> >> proliant:/etc/php5/apache2# telnet 127.0.0.1 9000
> >> Trying 127.0.0.1...
> >> telnet: Unable to connect to remote host: Connection refused
> >
> > Well, there is your problem then. Xdebug only tries to connect with
> > IPv4 and doesn't support IPv6. The above output shows that Eclipse
> > is only listening on IPv6.
>
> Does it mean that we have to wait for xdebug IPV6 version to work with
> last DEBIAN distribs (Sid)? (I did went back to the old DEBIAN release
> (Lenny) for the moment, cause of my addiction to xdebug)

Ah, I think I know what this is. Debian changed some default Java config
so that it only works with IPv6 (Don't ask me why). To fix:

Add /etc/sysctl.d/bindv6only.conf with contents:

net.ipv6.bindv6only = 0

then run: sysctl -p /etc/sysctl.d/bindv6only.conf
and restart eclipse. Then check whether it listens again on the IPv4
port.

That should do the trick :)

with kind regards,
Derick

-- 
Like Xdebug? Consider a donation: http://xdebug.org/donate.php
Xdebug | http://xdebug.org | xdebug-general@lists.xdebug.org
twitter: @derickr and @xdebug
Received on Mon Mar 22 2010 - 23:55:01 GMT

This archive was generated by hypermail 2.2.0 : Mon Jun 25 2018 - 06:00:04 BST