2

I am running a local network over a home router with dhcp enabled. So in case of any reboot of the router, my devices get some random IP within a given range. Is there any way to check the IPs of the other devices without getting into the router? like I have an app in my mobile named "Network scanner" which within a given network, checks and shows all the IPs of the other devices connected to that network. Is it possible to do it from a desktop GNU/Linux machine by any mean? So that I can call specific devices by their IP in an easier way without getting into the router.

1

Sure you can.Just install nmap tool

yum install -y nmap

then run :

nmap -sn 10.42.0.0/24

Of course you'll need to replace the IP range with the appropriate values for your network.

  • Although nmap may be useful, it is far from a solution to identify which machine is located at which IP. Only DNS or DNS-like services can really be useful and they require planning and/or proper configuration, either on a centralized server or each of the machines depending on the solution. – Julie Pelletier Jul 1 '17 at 4:22
0

Yes, you want to go all Matrix and use nmap. Or better probably, the GUI front end to it zenmap. It can scan individual hosts for open ports/services, possibly determine OS and version, etc. It can also sweep a subnet and report all devices that determine are there in some fashion. Nice feature of the GUI is that it displays the command it will run.

So that I can call specific devices by their IP in a easier way without getting into the router.

Of course, if this is your network, the "lazy/easy" thing to do would be to set up a local DNS server for a fake domain (mine is "my.house") and a DHCP server that assigns addresses based on client MAC address (your home router can probably do this). Kinda nice to be able to connect to "lrtv.my.house" instead of 192.168.42.173

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.