These firewalls often release new definition updates as the situation changes, so a lot of the hard work is handled for you. If you have a firewall with Deep Packet Exception, you can enable the in-built rules to block AnyDesk.To do this, create a new Software Restriction Policy with a Hash Rule for AnyDesk.exe. You can utilise Group Policy to deny AnyDesk.exe from running.To do so, add a new outgoing firewall rule to disallow TCP & UDP port 53 from all source IP addresses, EXCEPT the addresses of your own DNS servers. This removes the possibility of the AnyDesk client checking DNS records against their own servers, instead of yours.
Internally, it uses UDP ports 50001-50003 for multicasting to allow discovery on your local network. Like most hosted remote-access applications these days, AnyDesk connects out on ports TCP 80, TCP 443, and also one unique port – TCP 6568. This article explains a number of measures to block AnyDesk from connecting out to the big wide world.
However, it is not always desirable to have remote access software such as AnyDesk running on your network.
It is overtaking TeamViewer in popularity because AnyDesk is currently a lot more generous with how much activity they allow on the free version. AnyDesk is a Remote Desktop solution which has become very popular in the last two years.