I wrote the test for VNC server.
host … port 5900 protocol vnc
The routine talks via Tcp, it check for vnc servers also MacOs remote desktop.
Pls don’t ask me to upload this file using GIT or any other CVS. I don’t know how to do and I haven’t spare time for that.
This is a free lunch, take it as is.
Best regards, Massimo Sala