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

The client encountered an issue while using ipv6

Open nczyw opened this issue 1 year ago • 1 comments

Server OS : openwrt x86 docker Server version:1.1.10-3 client os : MacOS client:1.2.3 When the client has an IPv6 address, it is obtained by using the SIM card on the phone, opening the hotspot, and obtaining the IPv6 address. After connecting, the client: does not show as ready. Please check the network connection, but you can still enter the ID to control others, as well as the logs displayed by the server. I have uploaded them, please check server logs stdout: [2024-04-20 12:05:10.784476 +00:00] INFO [src/rendezvous_server.rs:597] IP change of 332279342 from [::ffff:220.196.193.50]:14331 to [2408:840d:dd30:ac8b:ce5:82b5:b13b:fbbd]:61953 It seems that the client's IPv4 address has been changed to the client's IPv6 address, and the server is frantically repeating the above log content. I only intercepted the last line of the log, and the content is the same. After turning off the client's ipv6, the network will show ready and everything is normal. It is known that the hotspot ipv6 issued by the SIM card of the mobile phone in China is likely to be prohibited from entering. Maybe this is the reason why ipv6 cannot work properly. I Just a guess.

nczyw avatar Apr 20 '24 14:04 nczyw

I found the same problem again yesterday. I simulated it for a long time and found the final problem. It was the hotspot opened by my colleague's Huawei mobile phone, which assigned IPV6, which caused this problem. Maybe there are some limitations of the IPV6 assigned by Huawei mobile phones. When connecting to the public server, the public server also had an error. When using the hotspot opened by iPhone, everything was normal. Is it possible to use ipv4 connection again when there is a problem with ipv6 connection? Because after the ipv6 connection fails, the server log will be instantly filled with the log in the problem.

nczyw avatar Jun 26 '24 01:06 nczyw