There are several Linux distributions available for a variety of needs thanks to the open source feature and the dedicated communities. In our overview, we’ll highlight the best providers, explain their advantages and disadvantages, and outline which operating systems are best suited for servers, desktops, or other uses.The best Linux Server distributions in an overview
How to get your Linux IP address in different ways
There are numerous ways to display your IP address in Linux. On the one hand, you have the option of using commands such as “hostname” or “ifconfig” in the Linux terminal to get the information. Alternatively, you can move ahead via the network settings.
How to your find your Linux IP address
There are many reasons why you might want to check your IP address. This information is important, for example, if you want to forward a router to your computer. Although the address’basic structure remains the same (consisting of four number blocks and an identification code with digits between 0 and 255), the steps to getting your Linux IP address are a little different than with Windows or Mac. We’ll take you through the process in Linux to find your IP address with Debian or Ubuntu.
Displaying a private IP address in Linux
One way of finding your private IP address in Linux is using the command “Show IP”. Just follow these steps:
- Start by opening the terminal. You can do this either directly via the app icon or with the key combination [Ctrl] + [Alt] and [T].
- Now, you’ve got different ways of getting your IP address in Linux. If you enter the command “ifconfig” in the terminal, all information will be displayed. You can also use the commands “ip addr” or “ip a”. Confirm with [Enter].
- You’ll now be shown all IP addresses that are in your network. These might also include those of other devices.
- To find your own computer’s IP address, search for the “inet” tag. You’ll find this under “wlo1”. Your private IPv4 address will be displayed just next to where it says “inet”. And you’ll find your IPv6 address next to the “inet6” tag.
Displaying a public IP address in Linux
You can also display your public IP address in Linux. This is the address that’s provided to, for example, websites that you access from your computer. Although it’s possible to determine the address, you should make sure that it’s not disclosed to third parties. If you want to display your public IP address in Linux, follow these steps:
- Start by opening the terminal by double-clicking the icon or by using the key combination [Ctrl] + [Alt] and [T].
- Now use the “curl ifconfig.me” command to check your public IP address in Linux. Confirm with the [Enter] key.
- Your public IP address, which also consists of four blocks of numbers, will show up directly below the command.
More ways to get your IP address in Ubuntu
If you want to find your IP address in Ubuntu you have two alternatives.
Via the terminal
The first alternative involves the “hostname” command. To move ahead with this, just change one step in the process:
- Open the terminal as described above.
- Enter the following command: “hostname -I” and confirm with [Enter].
- Your IP address will be displayed just below the command.
Via the settings
The second way to find your IP address in Ubuntu is through the settings. Here, you can do without the terminal.
- Click on the cog icon or on “Settings” in the menu bar. This will open your settings.
- Here, select “Network” in the menu.
- Just beside your internet connection, click on the arrow pointing to the right or on the cog icon.
- A window will open that displays the strength of your network’s connection, the connectivity speed, and your IP address.
Displaying your IP address in Debian
In case you want to see your IP address in Debian, you also have some options. Besides a graphical option, you can also use the Network Manager. We’ll show you both.
Via network settings
- To get your IP address in Debian using the graphical option, click on the network symbol in the top right corner of your desktop.
- Now select the option “Wired Connected”.
- Then click on “Wired Settings” to open your network settings.
- Under “Wired” you’ll see a small cog symbol on the right. Click on it.
- A host of information about your network will be displayed. Besides the DNS, MAC address and speed, you’ll also find your IPv4 and IPv6 addresses.
Via the command line tool
If you want to get to your IP address via Debian’s Network Manager, you can also use the command line tool “nmcli”.
- Open the terminal as described above.
- Enter the following: “nmcli -p device show” and confirm with [Enter].
- A lot of information will now be displayed. You will find the IP address relatively far down on the right next to “IP4.ADDRESS”.