How To Find IP public and IP private on an linux
Hello all,
Today is Friday 26 December 2020.
I want to talking about finding IP public ( Internet Protocol ) using linux terminal.
IP public is address name for global internet, with IP public user can access any servers internet ( there are various types of servers on the internet ) as long server is connected with internet and as long user is connected with a internet.
IP private is address name for LAN ( local area network ), user can only use IP private in a local area ( for example: school, office and etc ). IP private should not be use in a World Wide Internet for security purpose. Basically user can only use IP private on a local area network, use IP private to transfer file, etc.
How To Find IP public
---------------------------------
# open terminal
sudo apt install curl
curl ifconfig.me
How To Find IP private
---------------------------------
# open terminal
hostname -I
hostname -h # for help
if you have any question feel free to ask at: ghost087@protonmail.com
Have a nice day
Comments
Post a Comment