Giter Site home page Giter Site logo

Comments (9)

vjeson avatar vjeson commented on May 6, 2024 1

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.

from rustdesk.

rustdesk avatar rustdesk commented on May 6, 2024

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?

from rustdesk.

rustdesk avatar rustdesk commented on May 6, 2024

You do not need to set relay server, relay server is already implicitly used.

from rustdesk.

vjeson avatar vjeson commented on May 6, 2024

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

from rustdesk.

vjeson avatar vjeson commented on May 6, 2024

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",
];

from rustdesk.

rustdesk avatar rustdesk commented on May 6, 2024

I did test yesterday before deploy the code.

from rustdesk.

rustdesk avatar rustdesk commented on May 6, 2024

try to do below change in main.rs line 40

                            Some(rendezvous_message::Union::relay_response(_)) => {
                                println!("relay_response {:?}", addr);
                                let mut msg_out = RendezvousMessage::new();
                                msg_out.set_relay_response(RelayResponse {
                                    relay_server: relay_server.clone(),
                                    ..Default::default()
                                });
                                if let Some(mut stream) = saved_stream.take() {
                                    if let Ok((stream_a, _)) = rlistener.accept().await {
                                        let mut stream_a = FramedStream::from(stream_a);
                                        stream.send(&msg_out).await.ok();   
                                        if let Ok((stream_b, _)) = rlistener.accept().await {
                                            let mut stream_b = FramedStream::from(stream_b);
                                            stream_a.next_timeout(3_000).await;
                                            stream_b.next_timeout(3_000).await;
                                            relay(stream_a, stream_b, &mut socket, &mut id_map).await;
                                        }
                                    }
                                }
                            }

from rustdesk.

rustdesk avatar rustdesk commented on May 6, 2024

also make sure 21117 port work, relay uses 21117

from rustdesk.

rustdesk avatar rustdesk commented on May 6, 2024

If still not work, I can not help you. Up to yourself to solve it.

from rustdesk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.