The Auto-detect code does not work in Linux. The use of 10.255.255.255 needs to be 192.255.255.255. At least that was what worked on my Linux Mint 21 (based on Ubuntu 22.04).
Possibly a better approach would SNMP discovery.
The pysnmp project has been taken over and brought up to date.
They have a working example showing SNMP discovery in under 100 lines of Python.
The Auto-detect code does not work in Linux. The use of 10.255.255.255 needs to be 192.255.255.255. At least that was what worked on my Linux Mint 21 (based on Ubuntu 22.04).
Possibly a better approach would SNMP discovery.
The pysnmp project has been taken over and brought up to date.
They have a working example showing SNMP discovery in under 100 lines of Python.
https://github.com/lextudio/pysnmp/blob/main/examples/v1arch/asyncio/manager/cmdgen/broadcast-agent-discovery.py