vadimpronin / guacamole-lite

Node.js library for creating Guacamole-compatible servers. Guacamole is a RDP/VNC/SSH/Telnet client for HTML5 browsers.
Apache License 2.0
250 stars 78 forks source link

ECONNREFUSED 127.0.0.1:4822 #48

Open ptorrent opened 1 year ago

ptorrent commented 1 year ago

Hello there,

I just updated guacd to 1.4 and now I'm not able to connectu guacamole-lite to the guacd server.

Guacamole proxy daemon (guacd) version 1.4.0 started
guacd[16907]: INFO:     Listening on host ::1, port 4822
[Connection 1]  Closing connection with error:  { Error: connect ECONNREFUSED 127.0.0.1:4822

Any idea ?

Thanks for your help !

nTorre commented 10 months ago

I have the same problem, did you find a solution? This is the log, I tried to solve it, but I failed. [2024-01-18 19:52:23] [Connection 1] Closing connection with error: Error: connect ECONNREFUSED 127.0.0.1:4822 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1595:16) { errno: -61, code: 'ECONNREFUSED', syscall: 'connect', address: '127.0.0.1', port: 4822 }

vadimpronin commented 10 months ago

This error means that either your guacd is not running, or not accessible via 127.0.0.1:4822

nTorre commented 10 months ago

This error means that either your guacd is not running, or not accessible via 127.0.0.1:4822

Now I started the guacd server with docker: docker run -d \ --name=guacd \ -p 4822:4822 \ --restart unless-stopped \ lscr.io/linuxserver/guacd:latest

I used the basic server and the client example for react, but I can't see anything and I get this from the basic server: Starting guacamole-lite websocket server [2024-01-19 11:25:29] [Connection 1] Client connection open [2024-01-19 11:25:29] [Connection 1] Opening guacd connection [2024-01-19 11:25:29] [Connection 1] guacd connection open [2024-01-19 11:25:29] [Connection 1] Selecting connection type: rdp [2024-01-19 11:25:29] [Connection 1] Sending opCode: 6.select,3.rdp; [2024-01-19 11:25:29] [Connection 2] Client connection open [2024-01-19 11:25:29] [Connection 2] Opening guacd connection [2024-01-19 11:25:29] [Connection 1] Closing guacd connection [2024-01-19 11:25:29] [Connection 1] Client connection closed [2024-01-19 11:25:29] [Connection 2] guacd connection open [2024-01-19 11:25:29] [Connection 2] Selecting connection type: rdp [2024-01-19 11:25:29] [Connection 2] Sending opCode: 6.select,3.rdp; [2024-01-19 11:25:29] [Connection 2] Closing guacd connection [2024-01-19 11:25:29] [Connection 2] Client connection closed

In the html page it prints this in the html: <noscript>You need to enable JavaScript to run this app.</noscript> And I tried adding this "proxy": "http://localhost:8080" to the package.json of the react project, but I still can't see anything. What can I do? Thanks a lot

nTorre commented 10 months ago

I found the solution. I started with the wrong command the docker guacd server. Here the right one: docker run --name some-guacd -d -p 4822:4822 guacamole/guacd

vadimpronin commented 10 months ago

Thanks! I think I will add this to the documentation

nTorre commented 10 months ago

Thanks to you for your amazing work!