Connecting to Rustdesk server remotely

After watching Tom’s video, I have installed the rustdesk server on my homelab.

I am not wanting to set things up so that I can use it with clients outside of my network.

While I have set up the relevant port forwarding to the docker VM running rustdesk, I am not sure how it would work because the docker container does not appear to expose any ports

WAN interface

Is there something that I am missing?

Rustdesk uses the host networks option which means the container directly uses the host’s network interfaces and ports. For example docker ps won’t show port mappings because there aren’t any explicit mappings.

If you run the command docker logs <container> you can see what ports it’s using.

docker logs c173efb13e2e
[2025-02-22 10:38:42.886158 +00:00] INFO [src/peer.rs:84] DB_URL=./db_v2.sqlite3
[2025-02-22 10:38:42.892779 +00:00] INFO [src/rendezvous_server.rs:99] serial=0
[2025-02-22 10:38:42.892784 +00:00] INFO [libs/hbb_common/src/config.rs:902] Generated new keypair for id: 
[2025-02-22 10:38:42.892802 +00:00] INFO [src/common.rs:45] rendezvous-servers=[]
[2025-02-22 10:38:42.892809 +00:00] INFO [src/rendezvous_server.rs:101] Listening on tcp/udp :21116
[2025-02-22 10:38:42.892812 +00:00] INFO [src/rendezvous_server.rs:102] Listening on tcp :21115, extra port for NAT test
[2025-02-22 10:38:42.892815 +00:00] INFO [src/rendezvous_server.rs:103] Listening on websocket :21118
[2025-02-22 10:38:42.893239 +00:00] INFO [src/rendezvous_server.rs:138] mask: None
[2025-02-22 10:38:42.893260 +00:00] INFO [src/rendezvous_server.rs:139] local-ip: ""
[2025-02-22 10:38:42.893273 +00:00] INFO [src/common.rs:45] relay-servers=[]
[2025-02-22 10:38:42.893347 +00:00] INFO [src/rendezvous_server.rs:153] ALWAYS_USE_RELAY=N
[2025-02-22 10:38:42.893366 +00:00] INFO [src/rendezvous_server.rs:185] Start
[2025-02-22 10:38:52.976299 +00:00] INFO [src/peer.rs:102] update_pk 64696232 [::ffff:172.16.16.192]:63344 b"6891cd93-47dc-44e9-8cd9-9f74894e4f58" b"\xca_\x8c\xa5\x85\xf5%\xd3\xd6s\xaa\x93\x97;^\xb8\x94\xd2\xd4\x98R\xbb\x1a\x0c\xaa\x19\x90\x82o\x03\x05\xbb"
[2025-02-22 10:38:52.979418 +00:00] INFO [src/peer.rs:130] pk updated instead of insert
[2025-02-22 10:48:06.378898 +00:00] INFO [src/rendezvous_server.rs:597] IP change of 64696232 from [::ffff:172.16.16.192]:56204 to [::ffff:10.13.13.192]:60184
[2025-02-22 10:48:06.382256 +00:00] INFO [src/peer.rs:102] update_pk 64696232 [::ffff:10.13.13.192]:60184 b"6891cd93-47dc-44e9-8cd9-9f74894e4f58" b"\xca_\x8c\xa5\x85\xf5%\xd3\xd6s\xaa\x93\x97;^\xb8\x94\xd2\xd4\x98R\xbb\x1a\x0c\xaa\x19\x90\x82o\x03\x05\xbb"
[2025-02-22 10:48:06.384101 +00:00] INFO [src/peer.rs:130] pk updated instead of insert