mirror of
https://github.com/rustdesk/rustdesk.git
synced 2026-03-02 19:26:56 -05:00
can't get rustdesk-server-demo work #37
Labels
No labels
bug
documentation
duplicate
enhancement
enhancement
enhancement
good first issue
help wanted
invalid
question
unreproducible
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rustdesk-rustdesk#37
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @vjeson on GitHub (May 28, 2021).
IP=192.168.2.231 cargo run
2.set ID/Relay address on client
connect to another pc
the server log output
register_peer 192.168.2.3:53374
punch_hole_request 192.168.2.3:49650
relay_response 192.168.2.231:46299
block here
client throw exception Connection Error , Failed to connect to relay server
@rustdesk commented on GitHub (May 28, 2021):
I did not test in intranet, and did not run rustdesk-server-demo and rustdesk on the same machine (192.168.2.231). Can you help debug?
@rustdesk commented on GitHub (May 28, 2021):
You do not need to set relay server, relay server is already implicitly used.
@vjeson commented on GitHub (May 28, 2021):
Yes , I tested in intranet , at first ,I run one client and server on one pc , another client on another pc , not work ,So I depoly the serverdemo to the server ,still can't get it work . I also tested to remove relay server address as you said, got same error
I can debug , but i'm new to rust , so i can't figure out what's wrong
@vjeson commented on GitHub (May 28, 2021):
Because I only want use it in intranet ,So i comment the default relay server,
pub const RENDEZVOUS_SERVERS: &'static [&'static str] = &[
// "rs-cn.rustdesk.com",
// "rs-sg.rustdesk.com",
];
@rustdesk commented on GitHub (May 28, 2021):
I did test yesterday before deploy the code.
@rustdesk commented on GitHub (May 28, 2021):
try to do below change in main.rs line 40
@rustdesk commented on GitHub (May 28, 2021):
also make sure 21117 port work, relay uses 21117
@rustdesk commented on GitHub (May 28, 2021):
If still not work, I can not help you. Up to yourself to solve it.
@vjeson commented on GitHub (May 28, 2021):
It's my fault. I changed the server defualt port to 15000 and 15111 ,and set ID server addr ip:15000 ip:15111 , but the defualt port is fixed in config.rs file , if I change server port , I need to change RENDEZVOUS_PORT and RELAY_PORT
Thanks anyway .It's really a great project.