Your private IP address is used to assign computers to your private area without allowing them to be exposed to the internet directly. For example, you may wish to utilize private IP addresses to address every computer inside your home if you have several devices. In this case, the public IP address is provided for your router, and each device connected to your router receives a private IP address via the DHCP protocol from your router.
A public IP address is an Internet-accessible IP address, i.e., directly accessible over the internet and assigned to the network router connected to the ISP. The public IP address is the internationally unique IP address issued to a LAN. Your router now receives the requests and responses and forwards them to you using your private IP address. Google search makes it easy to find your public IP address.
GUI is a graphical user interface that any user may use as visual advice is provided.
CLI is a command-line interface that uses a terminal to connect to the server and perform UNIX operations.
For example, you could use Windows Explorer and go to some directory (the GUI). Or, you can start a CMD and use the cd command to interact with the OS using CLI.
For the Ubuntu desktop, one can check the wireless, private IP address using the below steps:
Run the following command to get a private IP address. For private IP addresses, there will be wlan0, wlan1, or wlan2 sections where private IP address details are mentioned.
You can install this command using net-tools which can be installed by:
The private IP address is also found using the following command from the terminal:
Write the below command to get your public IP address:
Another alternative to look for your public IP address is to search it on Google engine. Since anyone can view the public IP address, it is openly available on Google search.
In this article, we saw several techniques to find our IP address (both private and public) in Ubuntu OS. One needs to know IP addresses for various activities such as clustering, debugging networks, pinging to a host, connecting servers, etc. IP addresses are unique addresses for each device in the network. You will always need IP addresses whenever you encounter a task related to exchanging data between multiple devices. Besides, in the IP address instances of our web applications, you will need to determine the running instances to respond to the requests made between server and client. All these examples determine the essence of IP addresses in the networking world.
Photo by Jeton Bajrami on Unsplash Date: December 4-5th, 2024 Location: Geneva, Switzerland In just…
Who will win the race to the perfect SDV? The automotive industry is experiencing a…
Software developers spend a huge amount of effort working on optimization – extracting more speed…
Welcome to the Ubuntu Weekly Newsletter, Issue 866 for the week of November 10 –…
Debian and Ubuntu are two popular Linux distributions. In this deep dive we will guide…
In this article, we will see how to Install Google Cloud BigQuery Python client library…