Need to list IP of all devices connected in LAN including wi-fi connected devices
I use nmap command to detect the IP of connected devices in the LAN but if a hotspot is created on one of ubuntu machine of LAN and some of the devices are connected to internet using this hotspot, nmap command does not list these IPs. Devices which are connected to LAN whose IP is like 192.168.0.x and the devices those are connected using hotspot whose IP is like 10.0.xx.xx but nmap is not able to detect IP of these devices. As well as if virtual machine is installed on some of machine and they are using other OS like fedora and centos, these have also different IP than the sytem on which these are installed. These can not be detected too.
Is there any way so I can detect IP of each device either they are connected to hotspot or virtual machines?