The IP is the unique address by which the machine can be identified on the internet, and to understand it more clearly, it is just our house address, by using which the postman can deliver a letter to our home as well as the food delivery boy can deliver the food.
IP addresses are divided into two categories:
Let’s learn both of these IP address types and how to find them out in Ubuntu 22.04.
The Public IP address is used on the internet by which the browser can identify that this HTML request is made by the following machine or this email should be sent to the following IP address.
The public IP address can be found from the “ipinfo.io/ip” link using curl command as shown below:
The public IP address of our Ubuntu 22.04 machine is “39.41.37.159”.
A private IP address is used when you are going to connect with a machine in a private network to share data.
Private IP addresses can be found using two different methods on Ubuntu:
In this method, we are going to find out two different methods: using the “IP address” command and second is by using the “ifconfig” command.
For this method, we will first open the terminal of the Ubuntu with the shortcut key of CTRL+ALT+T and then run either of the following commands:
Both the above-mentioned commands will produce the same result.
Another method to find out private IP address on Ubuntu is by installing the package of net-tools using the command:
When the package of the net-tools is successfully installed, then run the command:
The IP address has been displayed on the screen of Ubuntu.
Another method which is more convenient to find the private IP address on Ubuntu is through to GUI method. For this, open the Settings of the Ubuntu:
When the Settings are open, choose the “Network” in the left side of the menu and then click on the “gear” icon in the “Wired” section:
A pop up will appear:
The IP address is being displayed.
To find IP address in Ubuntu 22.04, use “ip a” command to find private IP address and execute “curl http://ipinfo.io/ip” command to find Public IP address. In this blog, different methods to find out the IP address of our machine on Ubuntu have been discovered.
Previously I have written about how useful public cloud storage can be when starting a…
This is Part 2 of the "Karafka to Async Journey" series. Part 1 covered WaterDrop's…
For many software teams, documentation is written after features are built and design decisions have…
With the release of the FIPS 140-3 certified cryptographic modules for Ubuntu 22.04 LTS, Canonical…
Open source libraries are repositories of code that developers can use and, depending on the…
Last year, we had the opportunity to speak at Regent’s UX Conference (Regent’s University London’s…