See who is connecting to your machine over AnyDesk.
DeskWatch is a Python tool that monitors active AnyDesk connections on your own system and prints the remote IP address and port in a gradient CLI. A persistent blacklist keeps each address from being reported twice, and the console can be made transparent.
It is meant for the case where someone opens a remote session to your machine and you want to know where that session originates.
Caution
DeskWatch monitors your own machine. Do not deploy it on systems you do not own, and do not use the addresses it reports for access attempts, retaliation, or any other unauthorized action.
- 👀 Monitor AnyDesk connections — detects running AnyDesk processes and reads their active connections.
- 🧠 Persistent blacklist — every IP is reported once, no repeats.
- 🌈 Gradient CLI — color gradients and scrolling output via
rgbprint. - 🖥️ Transparent console — adjustable transparency for a cleaner look.
- ⚡ Real time — polls continuously and reports new peers immediately.
- Start the tool (
python main.py). - DeskWatch looks for AnyDesk processes on the system.
- Once AnyDesk is running, its active remote connections are read and displayed:
- Remote IP
- Port
- Link-local addresses (
169.254.x.x),127.0.0.1, and ports 80 and 443 are ignored. - Addresses that were already reported go on the blacklist automatically.
- Output is rendered with color gradients and scrolling effects.
-
🐍 Python 3.9+
-
📦 Dependencies:
pip install rgbprint psutil colorama
-
🖥️ Windows (for console transparency and connection lookup)
python main.py├─ main.py ➔ Main logic and CLI
├─ LICENSE ➔ License file
└─ README.md ➔ This file
psutildetects running AnyDesk processes and reads their TCP connections.- Sockets in LISTEN state and link-local addresses are filtered out.
- Console transparency is set through
ctypesand the Windows API. - Gradients and scrolling effects come from
rgbprint. - The persistent blacklist ensures each IP is printed only once.
Released under the MIT License. See LICENSE for details.
DeskWatch is based on an existing MIT-licensed project; the original copyright notice is retained as the license requires.
DeskWatch is for monitoring your own system. Do not use it to intrude on other systems or to carry out unauthorized actions. This project is not affiliated with, endorsed by, or sponsored by AnyDesk.