In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-09 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
What are the different ways to check the external network ip in the Linux system? I believe that many inexperienced people do not know what to do about it. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.
View public network ip in Linux system
Curl plain text output: curl icanhazip.com curl ifconfig.me curl curlmyip.com curl ip.appspot.com curl ipinfo.io/ip curl ipecho.net/plain curl www.trackip.net/icurl JSON format output: curl ipinfo.io/json curl ifconfig.me/all.json curl www.trackip.net/ip?json (a little ugly) curl XML format output: curl ifconfig.me/all.xmlcurl gets all IP details (excavator) curl ifconfig.me/all uses DYDNS (useful when you are using DYDNS services) curl-s' http://checkip.dyndns.org' | sed 's/.*Current IP Address:\ ([0-9\.] *\). * /\ 1digit g' curl-s http://checkip.dyndns.org/ | grep-o "[[: digit:].]\ +" use Wget instead of Curl wget http://ipecho.net/plain-O-Q Echo wget http://observebox.com/ip-O-Q; echo uses host and dig commands. If you have one, you can also use host and dig commands directly.
Host-t a dartsclink.com | sed 's/.*has address / /' dig + short myip.opendns.com @ resolver1.opendns.combash script example: #! / bin/bash PUBLIC_IP= `wget http://ipecho.net/plain-O-Q; echo`echo $PUBLIC_IP after reading the above, have you mastered the different ways to check the public network ip in the Linux system? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.