'Detecting macOS version from network traffic

I'd like to know if it's possible to detect the major and minor version of macOS from network traffic? I conducted an NMAP scan, but the results didn't identify my version of macOS 11.6.1.

Is there a way to detect macOS version using NMAP or other software (free or commercial)?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source