I have a script which I used to use in ubuntu. It got my lan ip address using the command hostname -I
. I would get an output like 192.168.1.xxx
as a string which I can use somewhere else.
However, with Manjaro, the command doesn't exist, when I tried hostname -i
, (lowercase) but i get 127.0.1.1
. I even installed the dnsutils.
Is there a way I can get my lan address as an output from any command / tool in Manjaro?