what ports anydesk uses
Access by IP address or host name. If AnyDesk is installed on both computers, you should be able to connect by entering the other computer's host name or IP address in the address field. In this case AnyDesk will make a direct TCP connection (without our servers) to the other computer on port 7070. If you wish to access a computer without user interaction, install AnyDesk there and set a password. You can connect to the computer as soon as it is powered on. Connecting to the logon screen is possible. If you don't want to re-enter the password every time you connect, use the Connections Without Password feature.