Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-10-2015, 03:57 AM   #1
Registered: May 2013
Posts: 200

Rep: Reputation: 1
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?

Please help.
Old 12-10-2015, 07:24 AM   #2
Senior Member
Registered: Oct 2004
Distribution: Debian Squeeze x86_64
Posts: 1,748
Blog Entries: 11

Rep: Reputation: 233Reputation: 233Reputation: 233
I assume you used the ping option of nmap. Why not use the ip range and ping those?

Also have in mind if a machine would block ping nmap would not list it (not sure. nmap is really intelligent). You might want to use arpwatch on several points of the network to get a whole lot more ip. This one is also indepentend of ip ranges.
Old 12-10-2015, 07:34 AM   #3
Senior Member
Registered: Jul 2012
Location: Aachen, Germany
Distribution: Void, Debian
Posts: 1,013

Rep: Reputation: 305Reputation: 305Reputation: 305Reputation: 305
The virtual machine problem and the hotspot problem are two separate (but similar) issues. If the VM has an ip like 10.x.x.x this sounds to me like you are NATing in your virtualization software. So nmap cannot detect these ips because they are simply not visible on your LAN. It's like if you were trying to ping a machine that sits behind a router.
You could address this by changing the networking mode to something that I think is called "bridge" in e.g. VirtualBox. As a result, the VM would become a client of your LAN and receive an ip adress in the 192.168... range.

The hotspot thing is probably similar. The hotspot acts like a router. The clients connected to the hotspot are hidden via NAT just the same. This is more difficult to solve though, and very much depends on you are creating the hotspot and what configuration options you have in the process.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Is there a way to view ALL devices connected to the system? ulkoma Linux - Newbie 10 02-19-2012 07:54 PM
[SOLVED] How can I scan for other devices connected to that router? linustalman Linux - Networking 4 04-23-2011 07:19 AM
how to make a system call to list out all the connected devices to a system nitingarg2012 Linux - Kernel 1 04-10-2011 02:45 PM
Is there a /dev/* list - I.e. What devices become when connected ? K@rl` Linux - Hardware 2 10-12-2004 09:25 AM
command to find out connected devices mrengc Linux - General 1 11-13-2002 12:25 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:47 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration