rustdesk icon indicating copy to clipboard operation
rustdesk copied to clipboard

uri and QR codes for quick connect to and also config self-hosted servers?

Open wildy opened this issue 2 years ago • 1 comments

Hi.

I just had a nice idea for a feature request -- we could implement handling of links with a scheme like such (see below):

  • rustdesk://123456789 -- ordinary connection link, public relay servers.
  • rustdesk://123456789?server=rd.example.org&key=FooBarBaz -- connection through a self-hosted server
  • rustdesk://?server=rd.example.org&key=FooBarBaz -- set self-hosted server parameters

The same thing could be encoded into a QR code which could be read by clients both from screen, camera, or file. I feel like this can be super useful in a lot of scenarios. For example:

  • Set up a client for a custom server quickly: just snap a QR with your smartphone or laptop camera and there you are, custom relay server is set automatically.
  • Help a novice user connect via a custom server without encoding it in client file name -- "Here, click this link, or click that button and let RustDesk grab the code from the screen for you"

Just like Wi-Fi QR codes, but for RustDesk.

Waiting for your comments and suggestions :)

wildy avatar May 25 '22 21:05 wildy

Thanks, we had such ideas also, but not start this project yet.

rustdesk avatar May 26 '22 00:05 rustdesk

现在还没有实现吗?

huddhudd avatar Aug 02 '22 07:08 huddhudd

Android

start deep link via adb

adb shell am start -W -a android.intent.action.VIEW -d <URI> <PACKAGE> PACKAGE=com.carriez.flutter_hbb

set config and password

config: rustdesk://config/<config_string>

You can get config_string from the welcome page of web console, also can be export from Settings -> Network on RustDesk client.

set permanent password: rustdesk://password/<password>

rustdesk avatar Dec 03 '23 12:12 rustdesk

Start connection

rustdesk://123456789 or rustdesk://connect/123456789 rustdesk://123456789/r force relay rustdesk://[email protected]?key=FooBarBaz rustdesk://123456789/[email protected]?key=FooBarBaz force relay

rustdesk avatar Dec 03 '23 14:12 rustdesk

@rustdesk it does not seems to work on macOS. Is it a me-problem or something known?

GuillaumeHullin avatar Mar 27 '24 11:03 GuillaumeHullin