You can learn how to view private and public internet addresses on a Linux computer.
Step 1: Know when to use this method.
The public address of the internet is what websites and services see.If you want to connect to your computer via a remote connection that isn't on the same network, you'll need the public address.
Step 2: There is an open terminal.
Click or double-click the Terminal app icon to open the terminal window.
Step 3: The public IP command can be entered.
Go to the Terminal window and type curl ifconfig.me.The command retrieves your public address from the website.
Step 4: Press to enter.
The command is run by doing so.
Step 5: Wait for your address to show up.
The public address of your network is shown below the command you entered.
Step 6: Understand when to use this method
If you want to forward your computer to another computer within your network, you'll need to know the address of the computer.
Step 7: You can open the terminal.
Click or double-click the Terminal app icon to open the terminal window.
Step 8: You can enter the "showip" command.
Ifconfig can be typed into the Terminal window.You can try to include the following commands.
Step 9: Press the enter button.
You can run your command and see the information of the network items, including your computer.
Step 10: Look for your computer's heading.
Just right of the "inet" tag is where you'll usually find your computer's information.
Step 11: Go to the private address.
The address is to the right of the "inet" tag.This is the address of your computer.Next to the "inet6" tag is the IPv6 address.The IPv6 address is used less than the IPv4 address.
Step 12: Try to use the "hostname" command.
On some Linux versions, you can bring up your computer's address by typing in hostname -I, which is a capital "i", not a lower-case "L").