Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Specify id/relay server as part of target id when connecting to another device (id@server) #2118

Closed
rustdesk opened this issue Nov 15, 2022 Discussed in #2072 · 12 comments
Closed

Comments

@rustdesk
Copy link
Owner

Discussed in #2072

Originally posted by vladimir-angelov-1337 November 11, 2022
It would be cool if instead of "123 456 789" I could write "123 456 789@domain.com" when connecting to another device and that would use domain.com as the id/relay server for this specific connection. That way even with self-hosted setups we could connect cross-organization.

@pedjas
Copy link

pedjas commented Nov 15, 2022

That way keys could be specified in domain DNS so clients would not have to bother with that too.

@vladimir-angelov-1337
Copy link

@rustdesk
Thank you!

@pedjas
Yes, exactly!

@ertankucukoglu
Copy link

I hope it will not be limited with domain and something like 123 456 789@1.1.1.1 would be possible. Not everybody uses a domain anyway.

I know there is IPv6 side of the things, though it would be considerable to start with IPv4

@pedjas
Copy link

pedjas commented Nov 15, 2022

I hope it will not be limited with domain and something like 123 456 789@1.1.1.1 would be possible. Not everybody uses a domain anyway.

Actually, domain part in ID does not have to be actual host address. It servers just as identification of a server. Client can check SRV record in domain DNS to see what is actual server address.

Fine example of using SRV records is in XMPP (Jabber) protocol. It allows everyone to run their own XMPP server but they can communicate with everyone else World wide as actual server for each user can be determined from DNS.

However both ways could be useful.

For example if @ is used as separator that could mean that server info should be taken from DNS. If # is used as separator that could mean actual address of server follows (which could be domain or plain IP).

Use DNS to get connection info:
123 456 789@mydomain.org

Connect directly to specified server:
123 456 789#rustdesk.mydomain.org
123 456 789#1.1.1.1

There is issue how to handle key if DNS is not used.

@vladimir-angelov-1337
Copy link

Can I put up a bounty for this?

@rustdesk
Copy link
Owner Author

rustdesk commented Nov 16, 2022

Can I put up a bounty for this?

Of course, but check out this first, #1953

@vladimir-angelov-1337
Copy link

Does US$100 seem reasonable?

@pedjas
Copy link

pedjas commented Nov 16, 2022

Other way to resolve this is kid of like https does. Client connects to server without key. First thing server does is deliver the key to the client. Client then switches to secure connection using provided key.

This way, users would not bother with keys at all.

@rustdesk
Copy link
Owner Author

@Xerxes-2 this can be done together with #2058

@rustdesk rustdesk changed the title Specify id/relay server as part of target id when connecting to another device Specify id/relay server as part of target id when connecting to another device (id@server) Mar 29, 2023
@rustdesk
Copy link
Owner Author

rustdesk commented Mar 29, 2023

The problem is how to pass the key in? Need extra UI to manage keys.

Usually users does not want to expose their keys, so do not ask why not fetch the key from the url (dns).

@rustdesk
Copy link
Owner Author

rustdesk commented Mar 29, 2023

Combine this with #1873, no plan to implement solely. Discuss there please.

Repository owner deleted a comment from vladimir-angelov-1337 Mar 29, 2023
Repository owner locked as resolved and limited conversation to collaborators Mar 29, 2023
@rustdesk
Copy link
Owner Author

rustdesk commented Oct 27, 2023

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants