xpra icon
Bug tracker and wiki

Changes between Version 25 and Version 26 of Clients/HTML5


Ignore:
Timestamp:
02/24/20 14:52:55 (5 months ago)
Author:
Antoine Martin
Comment:

don't use the default port 14500, as a proxy may be running and already using this port

Legend:

Unmodified
Added
Removed
Modified
  • Clients/HTML5

    v25 v26  
    66To setup your xpra server with HTML5 support, simply start a server with a TCP socket ({{{bind-tcp=...}}}) or a websocket ({{{bind-ws=...}}}), ie:
    77{{{
    8 xpra start --bind-tcp=0.0.0.0:14500 --start=xterm
     8xpra start --bind-tcp=0.0.0.0:10000 --start=xterm
    99}}}
    10 You can then point your browser to [http://localhost:14500/] and the xterm should appear in your browser window.
     10You can then point your browser to [http://localhost:10000/] and the xterm should appear in your browser window.
    1111
    1212You can also access the latest version of the HTML5 client here: [https://xpra.org/html5/connect.html].
     
    3232{{{
    3333echo -n 123456 > ./password.txt
    34 $ xpra start --bind-tcp=0.0.0.0:14500 --start=xterm --html=on \
     34$ xpra start --bind-tcp=0.0.0.0:10000 --start=xterm --html=on \
    3535    --tcp-auth=file,filename=./password.txt
    3636}}}
    3737As user {{{test}}}, you can then connect with the following URL:
    3838{{{
    39 http://localhost:14500/index.html?username=test&password=123456
     39http://localhost:10000/index.html?username=test&password=123456
    4040}}}
    4141When using the [https://xpra.org/html5/connect.html connect page], the credentials are not sent to the server. The javascript client handles authentication client side using HMAC.
     
    5555echo -n $PASSWORD > password.txt
    5656echo -n $AES_KEY > aes.txt
    57 xpra start :10 --bind-tcp=0.0.0.0:14500 --html=on --start=xterm \
     57xpra start :10 --bind-tcp=0.0.0.0:10000 --html=on --start=xterm \
    5858    --auth=file --password-file=`pwd`/password.txt \
    5959    --tcp-encryption=AES --tcp-encryption-keyfile=`pwd`/aes.txt
    6060sleep 5
    61 xdg-open "http://localhost:14500/index.html?username=$USER&password=$PASSWORD&encryption=AES&key=$AES_KEY"
     61xdg-open "http://localhost:10000/index.html?username=$USER&password=$PASSWORD&encryption=AES&key=$AES_KEY"
    6262}}}
    6363}}}