{"id":10574,"date":"2020-07-27T14:26:47","date_gmt":"2020-07-27T14:26:47","guid":{"rendered":"http:\/\/ubuntuhandbook.org\/?p=10574"},"modified":"2020-07-27T14:26:47","modified_gmt":"2020-07-27T14:26:47","slug":"find-ip-address-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/ubuntuhandbook.org\/index.php\/2020\/07\/find-ip-address-ubuntu-20-04\/","title":{"rendered":"How to Find Local \/ Public IP Address in Ubuntu 20.04"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/ubuntu-icon.png\" alt=\"\" width=\"250\" height=\"250\" class=\"aligncenter size-full wp-image-10245\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/ubuntu-icon.png 250w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/06\/ubuntu-icon-150x150.png 150w\" sizes=\"auto, (max-width: 250px) 100vw, 250px\" \/><\/p>\n<p>This is a step by step beginner guide shows how to check <b>local network IP<\/b> and <b>public IP<\/b> in both <b>IP4<\/b> and <b>IPv6<\/b> via either graphical interface or Linux commands in Ubuntu 20.04.<\/p>\n<p><b>1. Find IP address via System Settings:<\/b><\/p>\n<p>For the default Gnome desktop, you can <b>check the wireless network IP address<\/b> via:<\/p>\n<ul>\n<li>Open <b>Settings<\/b> and navigate to <b>Wi-Fi<\/b> in left pane.<\/li>\n<li>Click on the <b>gear icon<\/b> after the connected wifi network.<\/li>\n<li>In the pop-up it shows the detailed information including your IP address.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/wireless-ip.png\" alt=\"\" width=\"560\" height=\"304\" class=\"aligncenter size-full wp-image-10575\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/wireless-ip.png 560w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/wireless-ip-450x244.png 450w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/p>\n<p>To check the <b>wired network IP<\/b> address, do:<\/p>\n<ul>\n<li>Open <b>Settings<\/b> and navigate to <b>Network<\/b> in left pane.<\/li>\n<li>Click on the <b>gear icon<\/b> under connected wired network.<\/li>\n<li>In the pop-up it shows the detailed information including your IP address.<\/li>\n<\/ul>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/wired-ip.png\" alt=\"\" width=\"560\" height=\"304\" class=\"aligncenter size-full wp-image-10576\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/wired-ip.png 560w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/wired-ip-450x244.png 450w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/p>\n<p><b>2. Check Local IP address via ifconfig command:<\/b><\/p>\n<div class=\"arconix-box arconix-box-yellow\"><i class='fa fa-2x pull-left fa-lightbulb-o'><\/i><div class=\"arconix-box-content\">While wired network name is usually <b>eth0<\/b>, <b>eth1<\/b>, <b>eno1<\/b>, wireless network name is usually <b>wlan0<\/b>, <b>wlan1<\/b>, <b>wlo1<\/b>, &#8230;<\/div><\/div>\n<p>For other desktops or Ubuntu server without an UI, you can run <code>ifconfig<\/code> command to find your IP.<\/p>\n<pre style=\"border:none;\">ifconfig<\/pre>\n<p>If the command does not exit, run command to install it: <code>sudo apt install net-tools<\/code><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/ifconfig-focal.png\" alt=\"\" width=\"560\" height=\"375\" class=\"aligncenter size-full wp-image-10577\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/ifconfig-focal.png 560w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/ifconfig-focal-450x301.png 450w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/p>\n<p><b>3. Check Local IP address via ip command:<\/b><\/p>\n<p>There&#8217;s another command looks more straightforward. Simply run:<\/p>\n<pre style=\"border:none;\">ip address<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/ip-address.png\" alt=\"\" width=\"560\" height=\"284\" class=\"aligncenter size-full wp-image-10578\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/ip-address.png 560w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/ip-address-450x228.png 450w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/p>\n<p><b>4. Check Your Public IP address:<\/b><\/p>\n<p>You can search your <b>public ip<\/b> via Google or other web search engine. If you don&#8217;t have a web browser or you&#8217;re on Ubuntu server, following commands will tell the public IP.<\/p>\n<p><code>ifconfig<\/code> will tell the public IP if you are not behind a router.<\/p>\n<p>Or you can run command in console:<\/p>\n<pre style=\"border:none;\">curl https:\/\/ipinfo.io\/ip<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/public-ip.png\" alt=\"\" width=\"560\" height=\"112\" class=\"aligncenter size-full wp-image-10579\" srcset=\"https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/public-ip.png 560w, https:\/\/ubuntuhandbook.org\/wp-content\/uploads\/2020\/07\/public-ip-450x90.png 450w\" sizes=\"auto, (max-width: 560px) 100vw, 560px\" \/><\/p>","protected":false},"excerpt":{"rendered":"<p>This is a step by step beginner guide shows how to check local network IP and public IP in both IP4 and IPv6 via either graphical interface or Linux commands in Ubuntu 20.04. 1. Find IP address via System Settings: For the default Gnome desktop, you can check the wireless network IP address via: Open [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11,9],"tags":[1970,1971],"class_list":["post-10574","post","type-post","status-publish","format-standard","hentry","category-command-skills","category-howtos","tag-tell-ip-ubuntu-20-04","tag-tell-public-ip"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/10574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/comments?post=10574"}],"version-history":[{"count":0,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/posts\/10574\/revisions"}],"wp:attachment":[{"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/media?parent=10574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/categories?post=10574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ubuntuhandbook.org\/index.php\/wp-json\/wp\/v2\/tags?post=10574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}