Getting all IPs of devices connected to the same router [duplicate]
Clash Royale CLAN TAG#URR8PPP
This question already has an answer here:
Get devices name on the network
7 answers
I have several linux devices connected to the same router (of which I am not a administrator). How can I find out the ip addresses of all other devices by executing some commands in one of them?
networking ip
marked as duplicate by Isaac, RalfFriedl, Thomas, DarkHeart, GAD3R Dec 16 at 14:47
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
add a comment |
This question already has an answer here:
Get devices name on the network
7 answers
I have several linux devices connected to the same router (of which I am not a administrator). How can I find out the ip addresses of all other devices by executing some commands in one of them?
networking ip
marked as duplicate by Isaac, RalfFriedl, Thomas, DarkHeart, GAD3R Dec 16 at 14:47
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
related (with links to a lot of duplicate quesions): How can I list all IPs in the connected network, through Terminal preferably?
– Alexander Malakhov
Oct 22 '16 at 9:24
If this is a router and not a switch, I'm not sure if you can. A router doesn't pass broadcasts by default, and each device might be on a different subnet, so arp/nmap/fing/ping might be useless.
– Dani_l
Dec 16 at 11:19
add a comment |
This question already has an answer here:
Get devices name on the network
7 answers
I have several linux devices connected to the same router (of which I am not a administrator). How can I find out the ip addresses of all other devices by executing some commands in one of them?
networking ip
This question already has an answer here:
Get devices name on the network
7 answers
I have several linux devices connected to the same router (of which I am not a administrator). How can I find out the ip addresses of all other devices by executing some commands in one of them?
This question already has an answer here:
Get devices name on the network
7 answers
networking ip
networking ip
asked Oct 22 '14 at 19:08
qed
99641119
99641119
marked as duplicate by Isaac, RalfFriedl, Thomas, DarkHeart, GAD3R Dec 16 at 14:47
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
marked as duplicate by Isaac, RalfFriedl, Thomas, DarkHeart, GAD3R Dec 16 at 14:47
This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.
related (with links to a lot of duplicate quesions): How can I list all IPs in the connected network, through Terminal preferably?
– Alexander Malakhov
Oct 22 '16 at 9:24
If this is a router and not a switch, I'm not sure if you can. A router doesn't pass broadcasts by default, and each device might be on a different subnet, so arp/nmap/fing/ping might be useless.
– Dani_l
Dec 16 at 11:19
add a comment |
related (with links to a lot of duplicate quesions): How can I list all IPs in the connected network, through Terminal preferably?
– Alexander Malakhov
Oct 22 '16 at 9:24
If this is a router and not a switch, I'm not sure if you can. A router doesn't pass broadcasts by default, and each device might be on a different subnet, so arp/nmap/fing/ping might be useless.
– Dani_l
Dec 16 at 11:19
related (with links to a lot of duplicate quesions): How can I list all IPs in the connected network, through Terminal preferably?
– Alexander Malakhov
Oct 22 '16 at 9:24
related (with links to a lot of duplicate quesions): How can I list all IPs in the connected network, through Terminal preferably?
– Alexander Malakhov
Oct 22 '16 at 9:24
If this is a router and not a switch, I'm not sure if you can. A router doesn't pass broadcasts by default, and each device might be on a different subnet, so arp/nmap/fing/ping might be useless.
– Dani_l
Dec 16 at 11:19
If this is a router and not a switch, I'm not sure if you can. A router doesn't pass broadcasts by default, and each device might be on a different subnet, so arp/nmap/fing/ping might be useless.
– Dani_l
Dec 16 at 11:19
add a comment |
2 Answers
2
active
oldest
votes
I believe you could use nmap
to get such information.
The below command lists me all the machines/devices connected in my network. It is a home network and it lists me all the machines in my home.
nmap -sP 192.168.1.0/24
I believe you need to modify the subnet mask and IP range that you are in to suit your requirements.
1
why 192.168.1.0/24? what means?
– Tarlo_x
Nov 7 '15 at 13:15
2
nmap -sA 192.168.1.0/24
nmap option-sA
shows similar descriptive results with better readability, which includes device name, IP, mac, etc as with option-sP
. I personally prefer-sA
over-sP
for the readability sake.
– Jay
Feb 3 '16 at 10:17
@Tarlo_x superuser.com/questions/970380/…
– Alessandro Jacopson
Sep 2 at 9:30
add a comment |
For a more compact list of connected devices:
nmap -sL 192.168.0.* | grep (1
Explanationnmap -sL 192.168.0.*
will list all IPs in subnetwork and mark those, that have name:
Nmap scan report for 192.168.0.0
Nmap scan report for Dlink-Router.Dlink (192.168.0.1)
Nmap scan report for 192.168.0.2
...
Nmap scan report for android-473e80f183648322.Dlink (192.168.0.53)
...
Nmap scan report for 192.168.0.255
As all interesting records contain parenthesis (
and digit 1
, we filter for that with | grep (1
(backslash is needed to escape parenthesis)
Quirk
Beware that if two devices have the same name, nmap
will show only the one, that was connected to router last
add a comment |
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
I believe you could use nmap
to get such information.
The below command lists me all the machines/devices connected in my network. It is a home network and it lists me all the machines in my home.
nmap -sP 192.168.1.0/24
I believe you need to modify the subnet mask and IP range that you are in to suit your requirements.
1
why 192.168.1.0/24? what means?
– Tarlo_x
Nov 7 '15 at 13:15
2
nmap -sA 192.168.1.0/24
nmap option-sA
shows similar descriptive results with better readability, which includes device name, IP, mac, etc as with option-sP
. I personally prefer-sA
over-sP
for the readability sake.
– Jay
Feb 3 '16 at 10:17
@Tarlo_x superuser.com/questions/970380/…
– Alessandro Jacopson
Sep 2 at 9:30
add a comment |
I believe you could use nmap
to get such information.
The below command lists me all the machines/devices connected in my network. It is a home network and it lists me all the machines in my home.
nmap -sP 192.168.1.0/24
I believe you need to modify the subnet mask and IP range that you are in to suit your requirements.
1
why 192.168.1.0/24? what means?
– Tarlo_x
Nov 7 '15 at 13:15
2
nmap -sA 192.168.1.0/24
nmap option-sA
shows similar descriptive results with better readability, which includes device name, IP, mac, etc as with option-sP
. I personally prefer-sA
over-sP
for the readability sake.
– Jay
Feb 3 '16 at 10:17
@Tarlo_x superuser.com/questions/970380/…
– Alessandro Jacopson
Sep 2 at 9:30
add a comment |
I believe you could use nmap
to get such information.
The below command lists me all the machines/devices connected in my network. It is a home network and it lists me all the machines in my home.
nmap -sP 192.168.1.0/24
I believe you need to modify the subnet mask and IP range that you are in to suit your requirements.
I believe you could use nmap
to get such information.
The below command lists me all the machines/devices connected in my network. It is a home network and it lists me all the machines in my home.
nmap -sP 192.168.1.0/24
I believe you need to modify the subnet mask and IP range that you are in to suit your requirements.
answered Oct 22 '14 at 19:18
Ramesh
23.2k32101181
23.2k32101181
1
why 192.168.1.0/24? what means?
– Tarlo_x
Nov 7 '15 at 13:15
2
nmap -sA 192.168.1.0/24
nmap option-sA
shows similar descriptive results with better readability, which includes device name, IP, mac, etc as with option-sP
. I personally prefer-sA
over-sP
for the readability sake.
– Jay
Feb 3 '16 at 10:17
@Tarlo_x superuser.com/questions/970380/…
– Alessandro Jacopson
Sep 2 at 9:30
add a comment |
1
why 192.168.1.0/24? what means?
– Tarlo_x
Nov 7 '15 at 13:15
2
nmap -sA 192.168.1.0/24
nmap option-sA
shows similar descriptive results with better readability, which includes device name, IP, mac, etc as with option-sP
. I personally prefer-sA
over-sP
for the readability sake.
– Jay
Feb 3 '16 at 10:17
@Tarlo_x superuser.com/questions/970380/…
– Alessandro Jacopson
Sep 2 at 9:30
1
1
why 192.168.1.0/24? what means?
– Tarlo_x
Nov 7 '15 at 13:15
why 192.168.1.0/24? what means?
– Tarlo_x
Nov 7 '15 at 13:15
2
2
nmap -sA 192.168.1.0/24
nmap option -sA
shows similar descriptive results with better readability, which includes device name, IP, mac, etc as with option -sP
. I personally prefer -sA
over -sP
for the readability sake.– Jay
Feb 3 '16 at 10:17
nmap -sA 192.168.1.0/24
nmap option -sA
shows similar descriptive results with better readability, which includes device name, IP, mac, etc as with option -sP
. I personally prefer -sA
over -sP
for the readability sake.– Jay
Feb 3 '16 at 10:17
@Tarlo_x superuser.com/questions/970380/…
– Alessandro Jacopson
Sep 2 at 9:30
@Tarlo_x superuser.com/questions/970380/…
– Alessandro Jacopson
Sep 2 at 9:30
add a comment |
For a more compact list of connected devices:
nmap -sL 192.168.0.* | grep (1
Explanationnmap -sL 192.168.0.*
will list all IPs in subnetwork and mark those, that have name:
Nmap scan report for 192.168.0.0
Nmap scan report for Dlink-Router.Dlink (192.168.0.1)
Nmap scan report for 192.168.0.2
...
Nmap scan report for android-473e80f183648322.Dlink (192.168.0.53)
...
Nmap scan report for 192.168.0.255
As all interesting records contain parenthesis (
and digit 1
, we filter for that with | grep (1
(backslash is needed to escape parenthesis)
Quirk
Beware that if two devices have the same name, nmap
will show only the one, that was connected to router last
add a comment |
For a more compact list of connected devices:
nmap -sL 192.168.0.* | grep (1
Explanationnmap -sL 192.168.0.*
will list all IPs in subnetwork and mark those, that have name:
Nmap scan report for 192.168.0.0
Nmap scan report for Dlink-Router.Dlink (192.168.0.1)
Nmap scan report for 192.168.0.2
...
Nmap scan report for android-473e80f183648322.Dlink (192.168.0.53)
...
Nmap scan report for 192.168.0.255
As all interesting records contain parenthesis (
and digit 1
, we filter for that with | grep (1
(backslash is needed to escape parenthesis)
Quirk
Beware that if two devices have the same name, nmap
will show only the one, that was connected to router last
add a comment |
For a more compact list of connected devices:
nmap -sL 192.168.0.* | grep (1
Explanationnmap -sL 192.168.0.*
will list all IPs in subnetwork and mark those, that have name:
Nmap scan report for 192.168.0.0
Nmap scan report for Dlink-Router.Dlink (192.168.0.1)
Nmap scan report for 192.168.0.2
...
Nmap scan report for android-473e80f183648322.Dlink (192.168.0.53)
...
Nmap scan report for 192.168.0.255
As all interesting records contain parenthesis (
and digit 1
, we filter for that with | grep (1
(backslash is needed to escape parenthesis)
Quirk
Beware that if two devices have the same name, nmap
will show only the one, that was connected to router last
For a more compact list of connected devices:
nmap -sL 192.168.0.* | grep (1
Explanationnmap -sL 192.168.0.*
will list all IPs in subnetwork and mark those, that have name:
Nmap scan report for 192.168.0.0
Nmap scan report for Dlink-Router.Dlink (192.168.0.1)
Nmap scan report for 192.168.0.2
...
Nmap scan report for android-473e80f183648322.Dlink (192.168.0.53)
...
Nmap scan report for 192.168.0.255
As all interesting records contain parenthesis (
and digit 1
, we filter for that with | grep (1
(backslash is needed to escape parenthesis)
Quirk
Beware that if two devices have the same name, nmap
will show only the one, that was connected to router last
edited Oct 21 '16 at 10:05
answered Oct 20 '16 at 10:23
Alexander Malakhov
11114
11114
add a comment |
add a comment |
related (with links to a lot of duplicate quesions): How can I list all IPs in the connected network, through Terminal preferably?
– Alexander Malakhov
Oct 22 '16 at 9:24
If this is a router and not a switch, I'm not sure if you can. A router doesn't pass broadcasts by default, and each device might be on a different subnet, so arp/nmap/fing/ping might be useless.
– Dani_l
Dec 16 at 11:19