I've connected my Linux PC to another Linux PC through LAN. Is there any way to find out the IP address of that computer without logging into it?
I've set my ip manually 192.168.7.12 and I don't know the ip range of that computer.
Super User is a question and answer site for computer enthusiasts and power users. It only takes a minute to sign up.Sign up to join this community
From the terminal window, type the following command followed by Enter. (Where hostname is replaced with the hostname of the computer.
Install arp-scan by typing the following command in a terminal window followed by Enter.
sudo apt-get install arp-scan
NOTE: This may differ depending on the linux distribution.
Type the following command, followed by Enter:
sudo arp-scan --interface=eth0 --localnet
NOTE: The interface may vary depending on your setup.
You will be given a list of IP addresses on your local network as well as the MAC address and vendor details.