Sometimes I run
hostname -I
on my machine and got only one local IP returned like 192.168.0.10
, but lately, there is occasions where I type it and got in return both 192.168.0.10 192.168.122.1
.
If I go to my router page and to traffic settings, I don't see this second IP connected to it. How can I go further to investigate what is exactly this other IP, if its related to some other program or even to a security problem?
Best Answer
hostname -I
is synonymous tohostname --all-ip-addresses
which means it will show all IP address of all interfaces (except loopback).In my computer, i have three configured interfaces (one is my physical (bridge) interface, one virtual interface for
lxc
and one virtual interface fordocker
), hence it shows:From
man hostname
: