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.
yogeesh seralathan
12 years ago
Is it possible to get IP only ?
Because that would be very useful in automated scripts..
Arvind
12 years ago
Nice Article
Keep writing
Thank you !!!
voyance
13 years ago
Greetings! Very useful advice in this particular
article! It is the little changes that will make the biggest changes.
Many thanks for sharing!
hftv699
13 years ago
Nice
yui
13 years ago
I used to check my network IP address using the site Ip-Details.com .
yui
13 years ago
Nice
prakash
13 years ago
Thank you
David
13 years ago
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
Array St
15 years ago
Oke, thankss, this is enogh to help me..
Chris
16 years ago
Thanks you site is really helpful, I am just starting with linux and it gives simple answers to many of my questions
laura dogillo
16 years ago
your website is very helpful for my study in Linux. Thank you very much.
To check my public IP address I go to http://www.myiponline.net
because there I can see more information about my connection
Thanks
Ethernet IP address in linux OS, like centsOS, Kali linux and ubuntu can be configured.
https://www.youtube.com/watch?v=I1btwyqa1O0
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.
Is it possible to get IP only ?
Because that would be very useful in automated scripts..
Nice Article
Keep writing
Thank you !!!
Greetings! Very useful advice in this particular
article! It is the little changes that will make the biggest changes.
Many thanks for sharing!
Nice
I used to check my network IP address using the site Ip-Details.com .
Nice
Thank you
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
Oke, thankss, this is enogh to help me..
Thanks you site is really helpful, I am just starting with linux and it gives simple answers to many of my questions
your website is very helpful for my study in Linux. Thank you very much.
welcome…good to know it drive benefit to you
why don’t you go for –
hostname –ip