Xpra: Ticket #1774: html5 clients does not connect, goes to xpra.org instead

Hello,

I am testing xpra html5 capabilities and found some issues with the html5 client https://xpra.org/html5/connect.html. If I type in IP and port, it does not connect. Instead, it leads to xpra.org main page.

If typing in IP:PORT directly in the browser, the connection works.

Strange workaround: if I connect to the same IP:PORT in two browsers at the same time (firefox and chromium), the first connection is disconnected and shows the html5 client. If I click "connect" here, it works. (Of course, the other browser is disconnected than).

Maybe related: This way I can use the html5 client and choose some options. Especially I am trying different audio codecs. This works until for some unknown reason the connection breaks and is automatically reconnected. The options chosen in html5 client formular are lost after reconnection.

Unfortunately, a working connection does not show the URL parameters I could use instead of the html5 client formular. I tried xpra info | grep argv, but it only shows the URL ending with /index.html, but without parameters like ?sound=on. Getting a working URL with parameters would be a great help, but I found no documentation. The ?sound=on option I found in a ticket.

xpra server v2.2.4-r18312 in a debian 9 docker image Tested with Mozilla Firefox 53.0 and Chromium 64



Tue, 27 Feb 2018 16:17:14 GMT - Antoine Martin: status changed

If I type in IP and port, it does not connect. Instead, it leads to xpra.org main page.

Trivial fix in r18626: use a relative URL. But why are you using this copy of the client instead of the one already built into your xpra server?

... the first connection is disconnected and shows the html5 client.

Yes, just use the builtin client. Open your browser and point it at your xpra server, that's all.

The options chosen in html5 client formular are lost after reconnection.

I'll take a look. Those are stored on the session and should not get lost.

Unfortunately, a working connection does not show the URL parameters I could use instead of the html5 client formular.

They are stored on the session and do not leave the client (which is important for things like username and password).

Getting a working URL with parameters would be a great help, but I found no documentation.

There is none, those parameters are subject to change, you can find them in the page source.


Wed, 28 Feb 2018 04:53:03 GMT - Antoine Martin: owner, status changed

The options chosen in html5 client formular are lost after reconnection.

I can't reproduce this problem. Please provide steps.

The only problem that I found was with sound forwarding which was being turned off the connect page, and that is fixed in r18631. The other options show up as they were on the connect form.

Tested with:


Wed, 28 Feb 2018 14:29:43 GMT - mviereck:

Trivial fix in r18626: use a relative URL.

Now it does not go to xpra.org, but the connection fails. (Not found/ Apache Server at xpra.org Port 443). Maybe because I use a localhost connection and it cannot be resolved. Not an issue for me now as I now know how to connect my own xpra server directly.

But why are you using this copy of the client instead of the one already built into your xpra server?

I did not know how to do that; the wiki page only tells me about https://xpra.org/html5/connect.html. It was not obvious to me that I can connect with IP:PORT/connect.html. The wiki page could mention that explicitly.

The only problem that I found was with sound forwarding which was being turned off the connect page, and that is fixed in r18631.

Loosing the sound forwarding option was the one issue I observed, I did not check the others. Though, I loose this still in r18646. (Trying with two alternating connections in chromium to enforce broken connection). I don't know how it will behave on automatical reconnections, currently that does not happen anymore.


Wed, 28 Feb 2018 17:58:44 GMT - Antoine Martin:

Now it does not go to xpra.org, but the connection fails.

Then your server IP / port or login credentials are incorrect. (r18647 will now make us go back to the connect form reliably, even when hosted in a subdirectory like is the case with the one at https://xpra.org/html5/connect.html)

Be aware that if you use https for the form, the HTML5 client will try to use SSL when connecting to your target server, which will fail unless you have valid SSL certificate installed. If that's the case, try loading it with an http connection instead: http://xpra.org/html5/connect.html

I did not know how to do that; the wiki page only tells me about https://xpra.org/html5/connect.html. It was not obvious to me that I can connect with IP:PORT/connect.html. The wiki page could mention that explicitly.

It did already, I have now moved things around so the first link that you see refers to your local server: https://xpra.org/trac/wiki/Clients/HTML5?action=diff&version=21.

Though, I lose this still in r18646.

Odd. Maybe your browser needs a refresh. The only way this option can end up not checked is if:


Wed, 28 Mar 2018 05:00:59 GMT - Antoine Martin: status changed; resolution, milestone set


Sat, 23 Jan 2021 05:33:26 GMT - migration script:

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1774