Hello,
The KB article below shows which ports Lansweeper uses to scan computers and devices. Assuming you are mainly referring to Windows devices, it is basically WMI that sends back information over random ports. The article contains a link how you can set up a fixed WMI port, and allow traffic to that port. Hopefully this helps.
https://www.lansweeper.com/knowledgebase/used-tcp-ports/