LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 07-24-2012, 08:22 AM   #1
pradiptart
Member
 
Registered: Sep 2007
Posts: 102

Rep: Reputation: 12
How to get the devices details that are connected to my router ?


Hi,
I have problem in getting list of devices that are connected to my router.On the way to solve this question I have many problems to solve ,to get the answer of my question I have another question to solve as follow.Actually I have to get the device details connected to the router.

I am working in a company and I am having an IP for my pc which is a private IP only .e.g ;10.0.2.35.

Now I have to go from this IP,my questions are as follows

1.first question is How to get the router Ip,some how i got this by using
Quote:
route
command and i got some table from that table a FLAGS column is there and a 'G' will be there in one row and the 'Gateway' column of that row give me the router's address.I don't know it is correct or not,If not kindly give the solution for this.

2.second question is how to get the list of devices connected to this router ,is it possible to get the list of devices connected to this router.If yes can any one give some solution to get this information.

3.Third question is ,Is it possible to get the type of device connected to router.As it may be a PC,a Printer,a Mobile etc.


If this are possible then kindly tell some solution .I need this for my Project .

Thanks

Last edited by pradiptart; 07-24-2012 at 08:25 AM.
 
Old 07-24-2012, 09:20 AM   #2
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 647

Rep: Reputation: 189Reputation: 189
Hi pradiptart.
If your company network setup consists of a single gateway, you can discover its IP address via the route command, as you already wrote. The one with flags UG is, usually, the default gateway. You can use a one-liner like this:
Code:
route -n | awk '/UG/ {print $2}'
to retrieve it.
Coming to your second and third question, I think you can use nmap to scan all devices attached to your local network.
I usually use a command like this to scan for devices in my home network:
Code:
nmap -sP 192.168.0.0/24
but this avoids ports scan, which is needed to detect the device type and other information.
You may use the -A nmap option instead of -sP, but it will require a lot of processing time as it thoroughly scans every host.
 
2 members found this post helpful.
Old 07-25-2012, 02:19 AM   #3
pradiptart
Member
 
Registered: Sep 2007
Posts: 102

Original Poster
Rep: Reputation: 12
Hi 414N,

Hi,I have checked this command on a specific Ip e.g 10.0.3.5 ,which is a Ip of android phone but it is not showing the os details and showing "Too many fingerprints match this host to give specific OS details",I do not know what is wrong ,can you tell me is there any way to detect the device os or some details like it is a mobile or pc.

Thanks
 
Old 07-25-2012, 02:32 AM   #4
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 647

Rep: Reputation: 189Reputation: 189
It simply means that nmap cannot uniquely associate a single fingerprint to the scan results for your android smartphone, i.e. the open ports on the phone are not hinting to a unique device nmap knows about.
Try the latest nmap version (currently 6.01) if you're using an older one. Beware that a lot of things changed between version 5.xx and 6.xx
 
1 members found this post helpful.
Old 07-25-2012, 03:38 AM   #5
pradiptart
Member
 
Registered: Sep 2007
Posts: 102

Original Poster
Rep: Reputation: 12
Thanks for your reply,

I have upgraded my nmap to 6.01 and now i am getting following

Quote:
Device type: general purpose
Running: Linux 2.6.X
OS CPE: cpe:/o:linux:kernel:2.6
OS details: Linux 2.6.19 - 2.6.35
I am having a doubt,I know there in the android phone the os is of version 2.2 Froyo. How to get this details of the phone is there any way to get this..

Kindly tell something about this.
Thansk.

Last edited by pradiptart; 07-25-2012 at 03:43 AM.
 
Old 07-25-2012, 04:00 AM   #6
414N
Member
 
Registered: Sep 2011
Location: Italy
Distribution: Slackware
Posts: 647

Rep: Reputation: 189Reputation: 189
I doubt that nmap can get additional information such as Android version from scanning open ports on the device.
Maybe another tool that I don't know about could help you in this.
 
Old 07-25-2012, 07:04 AM   #7
pradiptart
Member
 
Registered: Sep 2007
Posts: 102

Original Poster
Rep: Reputation: 12
Hi all,

I am not able to get the details of android ,is there any other way to find a android phone.
if yes then kindly tell me some solution .

I searching for an answer ,kindly tell something that will be useful for me.

Thanks

Last edited by pradiptart; 07-25-2012 at 07:08 AM.
 
  


Reply


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
[SOLVED] How can I scan for other devices connected to that router? linustalman Linux - Networking 4 04-23-2011 07:19 AM
Wifi connected to router, ping to router ok, no webaccess. what is wrong? deepcore Linux - Wireless Networking 5 01-07-2008 01:59 AM
Limit connected items connected to my router andersh3 Linux - Newbie 1 03-16-2004 11:10 AM
command to find out connected devices mrengc Linux - General 1 11-13-2002 12:25 AM
Command to show connected devices? nutshell Linux - General 5 03-14-2002 07:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 05:32 PM.

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