sudo arp-scan --interface=eth0 --localnet
I know the above command works fine but it outputs everything like MAC address etc, etc. But I need to find only IP addresses. Is it possible ?
I just used
this gives the output as
as I have only these two in my Lan.
Does that do what you wanted? Or did you need the arp-scan command?
I re-read and see I missed the point of the question.
I would do this using just