17 comments on “How to check ip address in linux

  1. For Ubuntu, and possibly other Linux/Unix versions:

    % hostname -I (capital I as in Idaho)
    192.168.1.20

    If you have multiple interfaces active, you may get multiple ip addresses back.

  2. Greetings! Very useful advice in this particular
    article! It is the little changes that will make the biggest changes.
    Many thanks for sharing!

  3. There’s also a neat little utility that allows tracking the IP addresses of the machine it’s installed on. You can get the IP addresses via Email or have them written to a MySQL database. Here’s the link

Leave a Comment

Your email address will not be published. Required fields are marked *