Administrators can define "Allowed Zones" or "Blocked Zones" based on the geographic location of the incoming connection IP address.
Security policies that dynamically change based on the time of day.
To configure UFW for AnyDesk:
AnyDesk uses the following network protocols and ports:
AnyDesk is a popular remote desktop software that allows users to access and control computers remotely. However, for secure communication between the client and server, it's essential to configure the firewall settings properly. In this guide, we'll discuss how to configure firewall settings for AnyDesk. anydesk firewall
, checked both boxes, and hit OK. Almost instantly, the red icon on his taskbar flickered and turned a steady, reassuring green. The "Your Address" field populated with his unique ID. He initiated the connection. On the remote end, the client’s screen appeared before him as if he were sitting right there in their office. Thanks to the RSA 2048 encryption and the firewall exception he'd just carved out, the session was not only active but secure. "I'm in," Leo said into his headset, the storm outside finally fading into the background. Are you having trouble getting AnyDesk through your own firewall, or would you like to know more about its specific security features? AI can make mistakes, so double-check responses Copy Creating a public link... You can now share this thread with others Good response Bad response 8 sites Configure firewalls for AnyDesk Jan 21, 2026 —
Network-level protection against unauthorized access attempts. Administrators can define "Allowed Zones" or "Blocked Zones"
Use DNS-based filtering where possible, but combine with IP allowlists for strict environments. AnyDesk may change IP addresses; consider using their official IP list JSON feed (available upon request for enterprise customers).
| | Required Rules | |--------------|--------------------| | Outbound-only (typical client) | Allow TCP 443, TCP 80, UDP 50000–60000 outbound to AnyDesk domains/IPs. | | Inbound direct access | Forward TCP 7070 to target device; allow UDP 50000–60000 inbound. | | Highly restrictive network | Allow only TCP 443 outbound; performance may degrade (relay-only mode). | | Local LAN only | Allow TCP 7070 and UDP range on LAN interfaces; block to WAN if desired. | However, for secure communication between the client and
AnyDesk primarily uses a relay-based connection model, but it also attempts direct peer-to-peer (P2P) connections. The firewall must permit the following: