Why hostname -i does not display my IP address?

Solution Verified - Updated -


  • hostname -i command does not display my IP address.
  • hostname -i command will display another IP address instead of mine.


  • Red Hat Enterprise Linux 6, 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In