Blog

Find Your Local IP Address

Working From Home
Linux

Find Your Local IP Address

The Ifconfig Command

The ifconfig command is widely used but you may need to install the program first. It’s part of net-tools. To install, open a terminal and use the following command:

sudo apt install net-tools

To run ifconfig, simply execute this:

sudo ifconfig

The output will show the network interfaces with their associated IP addresses.

If you want to check a specific interface, use the command like this:

sudo ifconfig <interface>

The Ip Addr Command

Simply run the following command in the terminal. You don’t need superuser privileges to run this one.

ip addr

This will also output the network interfaces and their IP addresses.

The Hostname Command

This is another one that you can use as a regular user. Simply run this:

hostname -I

This will output the IP address of the interface in use.

Do note that these methods will output your private IP address.

User Agreement

Welcome to Modern Samurai

“If you wish to live as a Hunter… We are not desperate for help. We only seek the strong.” – Netero. Hunter X Hunter

An important part of establishing a contract is meeting of the minds. Where many websites hide their user agreement (a.k.a. terms of use, terms of service) at the bottom of their pages, we prefer to be upfront and honest about what you’re getting into. Please download our User Agreement and review it. It contains the terms as well as the privacy policy and cookie policy. If you agree, click “Agree” to continue to this Site. If you do not agree, click “Decline” to move away from this Site.