All posts

CortenDesk 1.17.0 adds WebRTC end to end

WebRTC now works from the web client and through the bundled server, with ICE server settings, TURN support and relay fallback.

Illustration of devices connecting directly with a relay path available as fallback.
WebRTC end to end1.17.0

CortenDesk 1.17.0 adds WebRTC for RustDesk 1.5 connections from the web client and through the bundled server. When it can, a session goes straight to the device. On a LAN, that means machine to machine instead of a trip through the relay.

The relay stays as the fallback.

WebRTC in the web client

To a device running RustDesk 1.5 or later, the web client now offers WebRTC alongside the relay. Open Session → Details during a session to see the Transport value:

  • WebRTC direct
  • WebRTC through TURN
  • Relay

WebRTC is on by default for the web client. You can turn it off with Settings → Server → Web client uses WebRTC.

Desktop clients and ICE servers

The bundled server is now CortenDesk Server 1.2.0. It passes RustDesk 1.5 WebRTC offers, answers and candidates between devices. Stock rustdesk-server does not.

For desktop clients, enable WebRTC on the device you connect from with Settings → General → Other → Enable WebRTC P2P connection. The device you connect to needs no change. To see the path, hover over the session tab.

Strategies now include a Network group for ice-servers. Use Network → WebRTC ICE servers to set the STUN and TURN servers RustDesk 1.5 uses for WebRTC. The console refuses entries the client would skip, such as a TURN server without credentials.

For the web client, use Settings → Server → Web client ICE servers. The format is stun:turn.example.com:3478, turn://user:[email protected]:3478.

If users connect from mobile data or carrier NAT, add a TURN server. The wiki has the WebRTC connections guide, including requirements, ICE server format and a tested coturn setup.

Fixes and notes

  • iPhone text fields no longer zoom the page and leave it scrolled sideways on the login screen, toolbars and web client fields.
  • Web client labels in the dock, tabs and file panel buttons are escaped.
  • Livewire is updated to 4.4.8 for GHSA-mhf7-xp6r-6qrc. CortenDesk did not use the affected features.
  • There are no database migrations.
  • The browser and the device learn each other's IP addresses over WebRTC, as with the desktop client.
  • When WebRTC cannot connect, the session falls back to the hole punch or the relay.

Update

Pull one of the 1.17.0 images:

docker pull marcpope/cortendesk:1.17.0
docker pull ghcr.io/marcpope/cortendesk:1.17.0

Manual installs also need hbbs upgraded to CortenDesk Server 1.2.0.

Full release notes: CortenDesk 1.17.0.