Every computer, whether server or client, connected to the Internet has an assigned IP address and communicates with other services using the TCP/IP protocol. In this tutorial, we will learn how to find out public and private IP addresses on Rocky Linux. You can find out your IP address either through the terminal or through a GUI option. So let's get started. The same commands work on other RHEL-based Linux distributions like AlmaLinux and CentOS too.
Here is a list of commands and services that can be used to get your external IP address. Just paste one of the on the command line to get the IP.
To find out your system IP address through the terminal, open up the terminal and type the following command:
# ifconfig # ip addr show # ip a
You can use any one of the following commands to view your system IP address.
As you can see network adapter ens33 with IP address 192.168.40.130/24 is assigned to my system.
For this option, you must have GUI installed on your System. Now login to your system and type Settings in the search bar and click:
The sidebar appears on your left side, navigate to the Network tab. After that click on the icon which was highlighted, to view system IP address as shown in the figure:
Now you can see your system IP address which is 192.168.40.130.
In this tutorial, we learned how to find out your Public IP address using curl, host, and dig. We also saw how to find a system's internal Private IP address using CLI and GUI in Rocky Linux 8. If you are using Debian Linux, take a look here.
Magento is a free and open-source e-commerce platform written in PHP. It is simple, easy…
ISPConfig is an open-source control panel that allows users to manage multiple servers from a…
As a Linux administrator, you may find it necessary to troubleshoot or test your Simple…
Ubuntu 24.04, like many modern Linux distributions, relies on the NetworkManager for managing network connections.…
Restic is a modern, open-source backup program designed for efficiency, security, and simplicity. It enables…
phpMyAdmin is a popular free tool written in PHP intended to administer MySQL and MariaDB…