TCP and UDP port scanning with Nmap to discover open services and identify AnyDesk
Here I am running two Nmap commands in my terminal to gather more detailed information about the target machine:
sudo nmap -sV -sC 10.48.129.195
sudo: Runs the command with administrator (root) privileges.nmap: Network mapper tool used for network discovery and security auditing.sV: Enables version detection to identify which applications and versions are running on open ports (revealing OpenSSH 7.6p1 and an AnyDesk client on port 7070).sC: Runs the default NSE (Nmap Scripting Engine) scripts to gather additional information, such as SSH host keys and SSL certificates.10.48.129.195: The target IP address of the lab machine.
From this, I found that port 22 is open for OpenSSH (version 7.6p1) and port 7070 is running an AnyDesk client
sudo nmap -v -sV -p 50001-50003 10.48.129.195
sudo: Runs the command with root privileges.nmap: The Network Mapper tool.v: Increases verbosity, showing more detailed scan progress in the terminal.sV: Enables version detection for the specified ports.p 50001-50003: Limits the scan to ports 50001–50003 to check for active services such as AnyDesk.10.48.129.195: The target IP address being scanned.

I scanned ports 50001 to 50003. This important range is needed to talk to the service we found earlier.