On Wed, Mar 30, 2022 at 5:40 AM Max <mc...@yahoo.com.invalid> wrote: > Hi: > > After a couple of days going crazy with this problem, I figured out how to > solve it so just leaving this here for future google surfers: > > Suddenly my guacamole server stopped working, the logs just showed this > error: > > 11:03:14.552 [ajp-nio-8009-exec-3] DEBUG o.a.g.net.InetGuacamoleSocket - > Connecting to guacd at localhost:4822. 11:03:14.553 > > [ajp-nio-8009-exec-3] ERROR o.a.g.s.GuacamoleHTTPTunnelServlet - HTTP tunnel > request failed: java.net.ConnectException: Connection refused (Connection > refused) > > After a lot of search, I used 127.0.0.1 instead of localhost in the > guacamole.properties as it worked for other people but no for me. > > guacd-hostname: 127.0.0.1 > guacd-port: 4822 > > > Until I noticed that the guacd service was listening in ::1 but not in > 127.0.0.1 > > Proxy daemon (guacd) version 1.4.0 started mar 30 11:00:33 Server1 > guacd[1300]: SUCCESS mar 30 11:00:33 Kalandraka guacd[1303]: Listening on > host ::1, port 4822 > > So, as I am not using Ipv6, just disabled it adding this entry: > > net.ipv6.conf.all.disable_ipv6 = 1 > > To the /etc/sysctl.conf file and restart the system. > > You can also force guacd to listen on the IPv4 port, without disabling IPv6 altogether. You do this by setting "bind_host" to 127.0.0.1 in /etc/guacd.conf. See:
https://guacamole.apache.org/doc/gug/configuring-guacamole.html#configuring-guacd -Nick