[GH-ISSUE #1753] No direct connection even if peers are in the same network #3088

Open
opened 2026-08-05 00:50:33 -04:00 by saavagebueno · 0 comments
Owner

Originally created by @jvanbruegge on GitHub (Mar 27, 2024).
Original GitHub issue: https://github.com/netbirdio/netbird/issues/1753

Describe the problem

I have deployed netbird on server in the public internet. Two peers are at home behind NAT (from the view of the server), but in the same LAN.

Is this expected to result in a relayed connection? I was hoping this would give a direct connection between the two peers.

Are you using NetBird Cloud?

Self-hosted

NetBird version

0.26.3

NetBird status -d output:

Peer two from the view of peer one.

caladan.net.cerberus-systems.de:
  NetBird IP: 100.107.70.54
  Public key: OyaccKy8y/+itamr2Y9EGJ/iU4PCBuQtgDxdSVGHXHE=
  Status: Connected
  -- detail --
  Connection type: Relayed
  Direct: false
  ICE candidate (Local/Remote): relay/srflx
  ICE candidate endpoints (Local/Remote): <IP>:51882/217.44.187.166:51882
  Last connection update: 2024-03-27 13:30:42
  Last WireGuard handshake: 2024-03-27 14:49:05
  Transfer status (received/sent) 3.8 KiB/12.7 KiB
  Quantum resistance: false
  Routes: -
Originally created by @jvanbruegge on GitHub (Mar 27, 2024). Original GitHub issue: https://github.com/netbirdio/netbird/issues/1753 **Describe the problem** I have deployed netbird on server in the public internet. Two peers are at home behind NAT (from the view of the server), but in the same LAN. Is this expected to result in a relayed connection? I was hoping this would give a direct connection between the two peers. **Are you using NetBird Cloud?** Self-hosted **NetBird version** 0.26.3 **NetBird status -d output:** Peer two from the view of peer one. ``` caladan.net.cerberus-systems.de: NetBird IP: 100.107.70.54 Public key: OyaccKy8y/+itamr2Y9EGJ/iU4PCBuQtgDxdSVGHXHE= Status: Connected -- detail -- Connection type: Relayed Direct: false ICE candidate (Local/Remote): relay/srflx ICE candidate endpoints (Local/Remote): <IP>:51882/217.44.187.166:51882 Last connection update: 2024-03-27 13:30:42 Last WireGuard handshake: 2024-03-27 14:49:05 Transfer status (received/sent) 3.8 KiB/12.7 KiB Quantum resistance: false Routes: - ```
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: DYNR/netbird#3088