rustdesk-server-pro icon indicating copy to clipboard operation
rustdesk-server-pro copied to clipboard

Relay temporary not avalaible (add relay with dns name)

Open pdifeo opened this issue 2 years ago • 30 comments

I configured RustDesk with two relays. One himself and another. For maintenance reasons the additional relay server is down. I cannot connect to all peers. It's normal ?

pdifeo avatar Oct 03 '23 15:10 pdifeo

How about?

image

rustdesk avatar Oct 03 '23 15:10 rustdesk

Return the server that in this moment is down

pdifeo avatar Oct 03 '23 16:10 pdifeo

It has health check periodically, please test after it is down for some seconds.

rustdesk avatar Oct 03 '23 16:10 rustdesk

image

pdifeo avatar Oct 03 '23 16:10 pdifeo

image

pdifeo avatar Oct 03 '23 16:10 pdifeo

More than an hour has passed. Otherwise I would not have posed the problem.

pdifeo avatar Oct 03 '23 16:10 pdifeo

I just tested repeatly many time by close/open hbbr process on one of relay servers, it worked as expected. Could you confirm telnet <the_ip_which_is_down> 21117? Our health check just telnet the port.

rustdesk avatar Oct 03 '23 16:10 rustdesk

@Mouxy do you have similar issue?

rustdesk avatar Oct 03 '23 16:10 rustdesk

@pdifeo could you try using ip rather than domain?

rustdesk avatar Oct 03 '23 16:10 rustdesk

telnet rd-relayxxxxxxxxxxxxx 21117
Trying 217.x.x.x ...
telnet: connect to address 217.x.x.x: Connection refused

pdifeo avatar Oct 03 '23 16:10 pdifeo

@pdifeo could you try using ip rather than domain?

tomorrow, now I'm updating the hosting machine.

pdifeo avatar Oct 03 '23 16:10 pdifeo

I will test domain names also tomorrow.

rustdesk avatar Oct 03 '23 16:10 rustdesk

It only works with IP addresses, I mentioned that in the docs

Mouxy avatar Oct 03 '23 16:10 Mouxy

It only works with IP addresses, I mentioned that in the docs

Not good and I'll explain why

I use the domain name because some clients are on the same LAN as the relay.

So to make the scenario clear to you, this relay is with private address. Necessarily I had to assign a domain name. On the Internet it is solved with the public IP address. On LAN it is resolved with private ip.

Clearly the server is under NAT 1:1

From what you say, a relay cannot be under NAT and in the same network as some clients.

pdifeo avatar Oct 03 '23 16:10 pdifeo

@Mouxy Thanks for your clarification.

rustdesk avatar Oct 03 '23 16:10 rustdesk

using just the IP address .

That's all ? It is honestly not clear.

pdifeo avatar Oct 03 '23 16:10 pdifeo

image

That's it, it should work fine with the IP addresses, I'll make sure to state it doesn't work with names.

I do believe this could be fixed though 😊

Mouxy avatar Oct 03 '23 16:10 Mouxy

I do believe this could be fixed though

I very much hope so. I was planning to install a relay at each of my custome or so. If the problem is not solved, I cannot implement my plan.

pdifeo avatar Oct 03 '23 17:10 pdifeo

Why would you install a relay in every client?

Mouxy avatar Oct 03 '23 17:10 Mouxy

Why would you install a relay in every client?

In every site of my customers. Before I wrote wrong. "Cliente" in Italian is Customer.

pdifeo avatar Oct 03 '23 17:10 pdifeo

I know 😊 in Portuguese we also say Cliente.

I was genuinely trying to understand what benefit you would have. I can see deploying relays close to regions/countries but in every client might not give you any benefits and you'll have to manage it and allow traffic in.

The devs maybe have a different view, but you might be putting yourself up for big amounts of work for marginal (if any) benefits.

Mouxy avatar Oct 03 '23 17:10 Mouxy

I have customers in Italy, Spain and France. So it makes a little sense what I want to do.

But I honestly see inefficiency in choosing a relay based on geographic location. I might get a faster connection by going through another relay because there might be less latency and not the one closest geographically. it is just my opinion which as such is debatable.

pdifeo avatar Oct 04 '23 05:10 pdifeo

image

That's it, it should work fine with the IP addresses, I'll make sure to state it doesn't work with names.

I do believe this could be fixed though 😊

Relay servers do work with names, I have setup around 100 RustDesk Server Pro's on VPS both testing and installing for other people, DNS works fine if setup ONLY for ipv4 and when added in the relay box its added without the port, (tbf never tried it with the port).

dinger1986 avatar Oct 04 '23 06:10 dinger1986

further proof it worked (I never touched that server) https://github.com/rustdesk/rustdesk/discussions/5817#discussioncomment-7180781

TLDR: Not working for OP or relaying sessions, kept on getting failed when trying to connect, added in relay server under web console as dns name and working immediately after

dinger1986 avatar Oct 04 '23 06:10 dinger1986

I think we may solve >1 relay servers with dns in next releases.

rustdesk avatar Oct 04 '23 06:10 rustdesk

@dinger1986 Perhaps the problem is not clear. If the ADDITIONAL relay server is DOWN, nothing works anymore. It normally works fine. I keep the problem. So some thing makes it happen.

pdifeo avatar Oct 04 '23 06:10 pdifeo

This issue is very clear I think, no need to discuss it further which making it more confusing.

rustdesk avatar Oct 04 '23 06:10 rustdesk

I think we may solve >1 relay servers with dns in next releases.

Hi Any news about it ?

pdifeo avatar Oct 20 '23 07:10 pdifeo

Hi,

when is implementation planned? is very important to me.

pdifeo avatar Nov 17 '23 07:11 pdifeo

https://github.com/rustdesk/rustdesk-server-pro/releases/tag/1.1.11

rustdesk avatar Dec 07 '23 00:12 rustdesk