Answers for "public ip linux"

8

ubuntu check public ip command line

#4 Ways to Find Server Public IP Address in Linux Terminal
#1. Using dig Utility
dig +short myip.opendns.com @resolver1.opendns.com
#2. Using host Utility
host myip.opendns.com resolver1.opendns.com | grep "myip.opendns.com has" | awk '{print $4}'
#3. Using wget Command Line Downloader
wget -qO- http://ipecho.net/plain | xargs echo
wget -qO - icanhazip.com
#4. Using cURL Command Line Downloader
 curl ifconfig.co
 curl ifconfig.me
 curl icanhazip.com
Posted by: Guest on August-09-2020
1

how to find public ip address in linux

$ wget -qO- http://ipecho.net/plain | xargs echo
$ wget -qO - icanhazip.com

120.88.41.175
Posted by: Guest on December-01-2020
0

public ip linux

curl api.ipify.org.
Posted by: Guest on August-17-2021
0

get public ipv6 linux

curl -s ipv6.icanhazip.com | xargs echo -n
Posted by: Guest on August-20-2021

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language