Will the NAT type cause the inability to connect to the self-built server? #2911

Closed
opened 2026-02-21 01:00:55 -05:00 by deekerman · 1 comment
Owner

Originally created by @sunlewuyou on GitHub (Aug 14, 2024).

Bug Description

When the client NAT type is "SYMMETRIC", it is impossible to connect to the self-built server:

[2024-08-15 02:11:36.984411 +08:00] INFO [src\core_main.rs:164] main start args:["--server"]
[2024-08-15 02:11:36.989086 +08:00] INFO [src\core_main.rs:263] start --server with user SYSTEM
[2024-08-15 02:11:36.997610 +08:00] INFO [src\ipc.rs:312] Started ipc server at path: \\.\pipe\RustDesk\query
[2024-08-15 02:11:37.000810 +08:00] INFO [src\rendezvous_mediator.rs:384] start rendezvous mediator of 106.225.219.132
[2024-08-15 02:11:37.004877 +08:00] INFO [src\lan.rs:30] lan discovery listener started
[2024-08-15 02:11:37.004978 +08:00] INFO [src\common.rs:492] Testing nat ...
[2024-08-15 02:11:37.221129 +08:00] DEBUG [libs\hbb_common\src\udp.rs:35] Receive buf size of udp 0.0.0.0:0: Ok(65536)
[2024-08-15 02:11:37.222494 +08:00] DEBUG [src\common.rs:529] Got nat response from 106.225.219.132:21116: port=15140
[2024-08-15 02:11:37.428906 +08:00] DEBUG [src\common.rs:529] Got nat response from 106.225.219.132:21115: port=35979
[2024-08-15 02:11:37.429022 +08:00] INFO [src\common.rs:555] Tested nat type: SYMMETRIC in 423.8365ms

image
image

NAT type of self-built server:
image

When the client NAT type is "ASYMMETRIC", you can connect to the self-built server:

[2024-08-15 02:25:30.974688 +08:00] INFO [src\core_main.rs:164] main start args:["--server"]
[2024-08-15 02:25:30.981093 +08:00] INFO [src\core_main.rs:263] start --server with user SYSTEM
[2024-08-15 02:25:31.409649 +08:00] INFO [src\ipc.rs:312] Started ipc server at path: \\.\pipe\RustDesk\query
[2024-08-15 02:25:31.581517 +08:00] INFO [src\rendezvous_mediator.rs:384] start rendezvous mediator of 106.225.219.132
[2024-08-15 02:25:31.724229 +08:00] INFO [src\common.rs:492] Testing nat ...
[2024-08-15 02:25:31.747792 +08:00] DEBUG [libs\hbb_common\src\udp.rs:35] Receive buf size of udp 0.0.0.0:0: Ok(65536)
[2024-08-15 02:25:31.886356 +08:00] DEBUG [src\rendezvous_mediator.rs:191] Latency of 106.225.219.132:21116: 122.847ms
[2024-08-15 02:25:31.967678 +08:00] INFO [src\lan.rs:30] lan discovery listener started
[2024-08-15 02:25:32.087031 +08:00] DEBUG [src\common.rs:529] Got nat response from 106.225.219.132:21116: port=23480
[2024-08-15 02:25:32.274122 +08:00] DEBUG [src\common.rs:529] Got nat response from 106.225.219.132:21115: port=23480
[2024-08-15 02:25:32.275386 +08:00] INFO [src\common.rs:555] Tested nat type: ASYMMETRIC in 550.6366ms
[2024-08-15 02:25:35.308145 +08:00] INFO [libs\scrap\src\common\hwcodec.rs:509] set hwcodec config

image

rustdesk-server version: 1.1.11-1
Client Version: 1.3.0

How to Reproduce

Install the Server

wget https://raw.githubusercontent.com/dinger1986/rustdeskinstall/master/install.sh
chmod +x install.sh
./install.sh

Install the Client:
https://github.com/rustdesk/rustdesk/releases/download/nightly/rustdesk-1.3.0-x86_64.exe

Expected Behavior

The client can connect to the self-built server normally

Operating system(s) on local side and remote side

Windows 11 > debian 11

RustDesk Version(s) on local side and remote side

1.3.0 -> 1.1.11-1

Screenshots

https://github.com/user-attachments/assets/b461c5c4-615e-4a9b-8f27-c0bd7c6b45c6

Additional Context

No response

Originally created by @sunlewuyou on GitHub (Aug 14, 2024). ### Bug Description **When the client NAT type is "SYMMETRIC", it is impossible to connect to the self-built server:** ``` [2024-08-15 02:11:36.984411 +08:00] INFO [src\core_main.rs:164] main start args:["--server"] [2024-08-15 02:11:36.989086 +08:00] INFO [src\core_main.rs:263] start --server with user SYSTEM [2024-08-15 02:11:36.997610 +08:00] INFO [src\ipc.rs:312] Started ipc server at path: \\.\pipe\RustDesk\query [2024-08-15 02:11:37.000810 +08:00] INFO [src\rendezvous_mediator.rs:384] start rendezvous mediator of 106.225.219.132 [2024-08-15 02:11:37.004877 +08:00] INFO [src\lan.rs:30] lan discovery listener started [2024-08-15 02:11:37.004978 +08:00] INFO [src\common.rs:492] Testing nat ... [2024-08-15 02:11:37.221129 +08:00] DEBUG [libs\hbb_common\src\udp.rs:35] Receive buf size of udp 0.0.0.0:0: Ok(65536) [2024-08-15 02:11:37.222494 +08:00] DEBUG [src\common.rs:529] Got nat response from 106.225.219.132:21116: port=15140 [2024-08-15 02:11:37.428906 +08:00] DEBUG [src\common.rs:529] Got nat response from 106.225.219.132:21115: port=35979 [2024-08-15 02:11:37.429022 +08:00] INFO [src\common.rs:555] Tested nat type: SYMMETRIC in 423.8365ms ``` ![image](https://github.com/user-attachments/assets/da6f5096-8403-4607-98e3-9c07fb9780f3) ![image](https://github.com/user-attachments/assets/7e112ddc-639a-43d2-a83e-3ec8fff3c6be) **NAT type of self-built server**: ![image](https://github.com/user-attachments/assets/184bb221-81f3-4983-a4bd-4af6999e0b41) **When the client NAT type is "ASYMMETRIC", you can connect to the self-built server:** ``` [2024-08-15 02:25:30.974688 +08:00] INFO [src\core_main.rs:164] main start args:["--server"] [2024-08-15 02:25:30.981093 +08:00] INFO [src\core_main.rs:263] start --server with user SYSTEM [2024-08-15 02:25:31.409649 +08:00] INFO [src\ipc.rs:312] Started ipc server at path: \\.\pipe\RustDesk\query [2024-08-15 02:25:31.581517 +08:00] INFO [src\rendezvous_mediator.rs:384] start rendezvous mediator of 106.225.219.132 [2024-08-15 02:25:31.724229 +08:00] INFO [src\common.rs:492] Testing nat ... [2024-08-15 02:25:31.747792 +08:00] DEBUG [libs\hbb_common\src\udp.rs:35] Receive buf size of udp 0.0.0.0:0: Ok(65536) [2024-08-15 02:25:31.886356 +08:00] DEBUG [src\rendezvous_mediator.rs:191] Latency of 106.225.219.132:21116: 122.847ms [2024-08-15 02:25:31.967678 +08:00] INFO [src\lan.rs:30] lan discovery listener started [2024-08-15 02:25:32.087031 +08:00] DEBUG [src\common.rs:529] Got nat response from 106.225.219.132:21116: port=23480 [2024-08-15 02:25:32.274122 +08:00] DEBUG [src\common.rs:529] Got nat response from 106.225.219.132:21115: port=23480 [2024-08-15 02:25:32.275386 +08:00] INFO [src\common.rs:555] Tested nat type: ASYMMETRIC in 550.6366ms [2024-08-15 02:25:35.308145 +08:00] INFO [libs\scrap\src\common\hwcodec.rs:509] set hwcodec config ``` ![image](https://github.com/user-attachments/assets/77088bd3-bb2b-4e17-a01f-acd6d0949cad) **rustdesk-server version: 1.1.11-1** **Client Version: 1.3.0** ### How to Reproduce **Install the Server**: ``` wget https://raw.githubusercontent.com/dinger1986/rustdeskinstall/master/install.sh chmod +x install.sh ./install.sh ``` **Install the Client**: `https://github.com/rustdesk/rustdesk/releases/download/nightly/rustdesk-1.3.0-x86_64.exe` ### Expected Behavior The client can connect to the self-built server normally ### Operating system(s) on local side and remote side Windows 11 > debian 11 ### RustDesk Version(s) on local side and remote side 1.3.0 -> 1.1.11-1 ### Screenshots https://github.com/user-attachments/assets/b461c5c4-615e-4a9b-8f27-c0bd7c6b45c6 ### Additional Context _No response_
deekerman 2026-02-21 01:00:55 -05:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@rustdesk commented on GitHub (Aug 14, 2024):

#763

@rustdesk commented on GitHub (Aug 14, 2024): #763
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/rustdesk-rustdesk#2911
No description provided.