Allow the app through the firewall
Windows or Linux firewall blocking connections? Set the network to Private and allow the app, or open ports 47820–47822.
Devices connect to each other on your network, so the receiving device must accept incoming connections. The app uses UDP 47820 (discovery), UDP 47821 (QUIC) and TCP 47822 (fallback), plus mDNS on UDP 5353.
Steps
Set the network to Private (Windows)
Open Settings › Network & internet › Wi-Fi (or Ethernet), choose your network and set Network profile type to Private. On Public networks Windows blocks incoming connections.
Allow the app
Open Windows Security › Firewall & network protection › Allow an app through firewall › Change settings. Tick Private for Personal Device Bridge (or
pdb.exefor the command-line tool).Or open the ports
In PowerShell as administrator:
New-NetFirewallRule -DisplayName "Personal Device Bridge" -Direction Inbound -Protocol UDP -LocalPort 47820,47821 -Profile Private -Action Allow, and the same with-Protocol TCP -LocalPort 47822.Linux
With ufw:
sudo ufw allow 47820:47821/udp,sudo ufw allow 47822/tcpandsudo ufw allow 5353/udp. With firewalld:sudo firewall-cmd --permanent --add-port=47820-47821/udp --add-port=47822/tcp --add-service=mdns, thensudo firewall-cmd --reload.
Other security software
Third-party antivirus suites often have their own firewall. Add the same exception there. Only allow private networks, never public ones such as café Wi-Fi.