The objective is to retrieve a local IP address on Ubuntu 18.04 Bionic Beaver Linux using Graphical user interface or terminal command line

Operating System and Software Versions

  • Operating System: - Ubuntu 18.04 Bionic Beaver
  • Software: - GNOME GUI


No special requirements are needed.


  • # - requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ - requires given linux commands to be executed as a regular non-privileged user

Other Versions of this Tutorial

Ubuntu 20.04 (Focal Fossa)


Command Line

Let's start by using the terminal to display your internal IP address. Open up terminal and execute:
$ ip a
1: lo:  mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host 
       valid_lft forever preferred_lft forever
2: enp0s3:  mtu 1500 qdisc fq_codel state UP group default qlen 1000
    link/ether 08:00:27:2f:a4:ad brd ff:ff:ff:ff:ff:ff
    inet brd scope global dynamic enp0s3
       valid_lft 84760sec preferred_lft 84760sec
    inet6 fe80::db46:468e:e4cf:be5/64 scope link 
       valid_lft forever preferred_lft forever

Subscribe to our NEWSLETTER and receive latest Linux news, jobs, career advice and tutorials.

Locate your interface eg. enp0s3 and search for the IP address. Reading the above ip command output our IP address is Additional information included is MAC address 08:00:27:2f:a4:ad and network mask

ubuntu 18.04 bionic beaver show IP address from terminal

Graphical User Interface

Using your GUI interface navigate to Settings->Network. Once in the network settings window locate your connected Wired/Wireless interface and click on the gearwheel icon:

ubuntu 18.04 bionic beaver show IP address from GUI

Additional information includes the gateway/default route IP address eg. and the DNS server IP address eg.
FIND LATEST LINUX JOBS on LinuxCareers.com
Submit your RESUME, create a JOB ALERT.
Subscribe to NEWSLETTER and receive latest news, jobs, career advice and tutorials.
Get extra help by visiting our LINUX FORUM or simply use comments below.