Main Tutorials

How to check ip address in linux

Just issue following command to check your ip address in linux


/sbin/ifconfig

ifconfig

ya, my ip address now is 10.0.0.6

About Author

author image
Founder of Mkyong.com, love Java and open source stuff. Follow him on Twitter. If you like my tutorials, consider make a donation to these charities.

Comments

Subscribe
Notify of
17 Comments
Most Voted
Newest Oldest
Inline Feedbacks
View all comments
Gregory Tanner
4 years ago

To check my public IP address I go to http://www.myiponline.net
because there I can see more information about my connection

John Trasvuelta
4 years ago
Reply to  Gregory Tanner

Thanks

tanzila
6 years ago

Ethernet IP address in linux OS, like centsOS, Kali linux and ubuntu can be configured.
https://www.youtube.com/watch?v=I1btwyqa1O0

Guest
9 years ago

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
10 years ago

Is it possible to get IP only ?
Because that would be very useful in automated scripts..

Arvind
10 years ago

Nice Article

Keep writing

Thank you !!!

voyance
10 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
10 years ago

Nice

yui
10 years ago

I used to check my network IP address using the site Ip-Details.com .

yui
10 years ago

Nice

prakash
11 years ago

Thank you

David
11 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
13 years ago

Oke, thankss, this is enogh to help me..

Chris
13 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
14 years ago

your website is very helpful for my study in Linux. Thank you very much.

Kuldeep Arya
10 years ago
Reply to  mkyong

why don’t you go for –
hostname –ip