I will use hostname -I command display 2 IP address how there is 2 IP address in and what it the difference between them?

closed as unclear what you're asking by Milliways, Steve Robillard, Darth Vader Jun 3 '18 at 10:57

Please clarify your specific problem or add additional details to highlight exactly what you need. As it's currently written, it’s hard to tell exactly what you're asking. See the How to Ask page for help clarifying this question. If this question can be reworded to fit the rules in the help center, please edit the question.

  • Note: you're getting a lot of answers because you haven't actually showed us what you are seeing... – OyaMist Jun 3 '18 at 4:52

From what I can read around, hostname -I will show up addresses and a single host can have multiple IP addresses set up (normally it's one IP address per interface but it's very flexible so you can have multiple IP addresses in a single interface, for example). And what do they mean? Not much, only that a single host con be connected to more than one network at a given moment in time. Think of a router, they could have a plethora of addresses set up.


Because the Pi3 has 2 interfaces!

Read man hostname


On a single line, you will see two IP adresses. The first IP address is the IPv4 address. The second one on the right is the IPv6 address. IPv6 is longer and was introduced so that we could internet the galaxy. IPv4 is shorter and still in use. IPv4 remains more practical for humans because of its brevity.

  • 1
    You will only see IPv6 if you have a router which allocates one – Milliways Jun 2 '18 at 22:02

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