Guacamole 1.4: “Creation of WebSocket tunnel to guacd failed”

Problem: Guacamole 1.4 shows “internal error” when making any connection and in /var/log/tomcat9/catalina.out you see something like:

ERROR o.a.g.w.GuacamoleWebSocketTunnelEndpoint - Creation of WebSocket tunnel to guacd failed: Connection refused (Connection refused)

Possible explanation:

This is due to IPv4 vs. IPv6 differences - depending on the version of Linux, guacd may listen on IPv6 by default, and Tomcat tries to connect on IPv4. Forcing one or the other to use IPv4 or IPv6 usually works - in this case, the change forces guacd to listen on IPv4, and Tomcat can connect to it.

Solution: create /etc/guacamole/guacd.conf with the following contents:

bind_host =
bind_port = 4822

Also make sure your /etc/guacamole/ has client connection info:

guacd-port: 4822

Then restart guacd:

systemctl restart guacd
This entry was posted in Solutions and tagged . Bookmark the permalink.

2 Responses to Guacamole 1.4: “Creation of WebSocket tunnel to guacd failed”

  1. Guacamole User says:

    You are my hero!

  2. weeper says:

    Thank you so much!

Leave a Reply

Your email address will not be published. Required fields are marked *