Don't get P2P-Connections and can't ping peers

I just get relay-connections and can’t ping other peers.
I set up NetBird on a vServer at netcup and running NetBird on my TrueNAS and my other devices.
I followed the “Self-Hosting Quickstart Guide (5 min)” and opened TCP ports 80 and 443, and UDP port 3478 on my VPS. What else do I need to get P2P-Connections?

netbird status -d

PS C:\Users\thorsten> netbird status -d
Peers detail:
truenas.netbird.mydomain.com:
NetBird IP: 100.85.6.115
Public key: dfefcuL5dRLtYqMQdUYs/Z8cu/edCWOumR/4lTjK+XQ=
Status: Connected
– detail –
Connection type: Relayed
ICE candidate (Local/Remote): -/-
ICE candidate endpoints (Local/Remote): -/-
Relay server address: rels://netbird.mydomain.com:443
Last connection update: 24 minutes, 39 seconds ago
Last WireGuard handshake: 29 seconds ago
Transfer status (received/sent) 6.2 MiB/751.5 KiB
Quantum resistance: false
Networks: 192.168.1.85/32, 192.168.13.0/24
Latency: 0s

my-pixel-5.netbird.mydomain.com:
NetBird IP: 100.85.31.151
Public key: hGgb1lByYHWU5vyKKtPUg32RwQn1Ar4IklbU0/murAY=
Status: Idle
– detail –
Connection type: -
ICE candidate (Local/Remote): -/-
ICE candidate endpoints (Local/Remote): -/-
Relay server address:
Last connection update: -
Last WireGuard handshake: -
Transfer status (received/sent) 0 B/0 B
Quantum resistance: false
Networks: -
Latency: 0s

wife-pixel-8.netbird.mydomain.com:
NetBird IP: 100.85.41.29
Public key: qGhb4yOAJkkI2DfRapE4hRunZIODppEY8WEgSIJKKDk=
Status: Idle
– detail –
Connection type: -
ICE candidate (Local/Remote): -/-
ICE candidate endpoints (Local/Remote): -/-
Relay server address:
Last connection update: -
Last WireGuard handshake: -
Transfer status (received/sent) 0 B/0 B
Quantum resistance: false
Networks: -
Latency: 0s

lg-gram.netbird.mydomain.com:
NetBird IP: 100.85.98.206
Public key: NzG5g/Yg6fokvTu8TNl8PgzqVEqR3LMVNJ55R9RMa3E=
Status: Idle
– detail –
Connection type: -
ICE candidate (Local/Remote): -/-
ICE candidate endpoints (Local/Remote): -/-
Relay server address:
Last connection update: -
Last WireGuard handshake: -
Transfer status (received/sent) 0 B/0 B
Quantum resistance: false
Networks: -
Latency: 0s

my-pixel-8.netbird.mydomain.com:
NetBird IP: 100.85.143.46
Public key: meEW3Me3X0ufiad41MM+JhP0RYlpSCvVp294oEj/704=
Status: Idle
– detail –
Connection type: -
ICE candidate (Local/Remote): -/-
ICE candidate endpoints (Local/Remote): -/-
Relay server address:
Last connection update: -
Last WireGuard handshake: -
Transfer status (received/sent) 0 B/0 B
Quantum resistance: false
Networks: -
Latency: 0s

Events:
[INFO] SYSTEM (f7d35a80-999e-4f66-acda-2cb438dd66ec)
Message: Network map updated
Time: 24 minutes, 39 seconds ago
OS: windows/amd64
Daemon version: 0.66.2
CLI version: 0.66.2
Profile: default
Management: Connected to https://netbird.mydomain.com:443
Signal: Connected to https://netbird.mydomain.com:443
Relays:
[stun:netbird.mydomain.com:3478] is Available
[rels://netbird.mydomain.com:443] is Available
Nameservers:
FQDN: home-pc.netbird.mydomain.com
NetBird IP: 100.85.13.245/16
Interface type: Userspace
Quantum resistance: false
Lazy connection: true
SSH Server: Disabled
Networks: -
Peers count: 1/5 Connected

Hope somebody can help…

Heya! Relayed happens when your machines can’t setup a P2P connection. This sometimes happens when you are in a NAT’d network where there is much more stricted configuration setup for the connection between the 2 peers from one to another.

Netbird runs on Wireguard, and it tries to setup a P2P connection for VPN access. If it’s unable to do so, it might be because of the network of either machines/

I opened Port 3478 and 51820 UDP and TCP on my VPS and
had a P2P connection from my PC (LAN connected) to my
TrueNAS (same LAN).
From my notebook (WiFi connected) I still had a Relay connection.

I woudn’t be able to tell you, this is due to the way your network might be setup. And beyond the scope of what I’d be able to help with without being in your network.