It looks like the script uses arp-scan to detect cameras.  That is an ethernet-level tool so it will detect only devices on the wifi network your computer is connected to, not all networks within range.