FreeRDP / FreeRDP-WebConnect

A gateway for seamless access to your RDP-Sessions in any HTML5-compliant browser
514 stars 1.6k forks source link

install on Ubuntu 14.04 does not connect. #162

Open jennifergates opened 7 years ago

jennifergates commented 7 years ago

I tried installing with the setup_all.sh script a few times and I can't get it to connect to my backend server. There doesn't appear to be an error on the setup script. It says it completed successfully. I'm probably just doing something wrong. (I can't find any install directions other than the README files.) I have to go to the wsgate/build directory and run sudo ./wsgate to get it to run. I copied the wsgate.ini.sample.in file to wsgate.ini and edited just the http bindaddr and document_root, and set redirect to false.

It just errors with "E:Could not connect to RDP backend."

syslog has: void wsgate::Update::Register(freerdp) void wsgate::Primary::Register(freerdp) E:Could not connect to RDP backend. Request from: 192.168.1.10 replied with OK JS: C o u l d n o t c o n n e c t t o R D P b a c k e n d . sending close ack

I'm not sure what else to do. I can use xfreerdp from the ubuntu server directly to the rdp server and it connects without a problem.

jennifergates commented 7 years ago

So I've found that I can connect to a windows laptop through webconnect, but not to my ubuntu box. I can use remmina on the webconnect server to connect to the ubuntu server without problem, but not through webconnect. I can connect from my windows laptop to the ubuntu server through rdp without a problem. I just seems the FreeRDP WebConnect connection to the xrdp on the ubuntu box is not working.

All I get in the xrdp.log file on the ubuntu server is: [INFO] A connection received from: 192.168.1.11 port 34616 [DEBUG] Closed socket 12 (AF_INET 192.168.1.12:3389) [DEBUG] Closed socket 11 (AF_INET 0.0.0.0:3389) [DEBUG] Closed socket 12 (AF_INET 192.168.1.12:3389) [ERROR] Listening socket is in wrong state, terminating listener

and on the webconnect server syslog I just get: wsgate[4436]: syslog has: wsgate[4436]: void wsgate::Update::Register(freerdp) wsgate[4436]: void wsgate::Primary::Register(freerdp) wsgate[4436]: E:Could not connect to RDP backend. wsgate[4436]: Request from: 192.168.1.10 replied with OK wsgate[4436]: JS: C o u l d n o t c o n n e c t t o R D P b a c k e n d . wsgate[4436]: sending close ack wsgate[4436]: GOT close wsgate[4436]: GOT WS DISCONNECT wsgate[4436]: virtual wsgate::RDP::~RDP() wsgate[4436]: RDP client thread terminated wsgate[4436]: RDP::ConextFree

I'm really stumped. any help would be awesome. Thanks!