In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly analyzes how to view the relevant knowledge points of the public IP in the Linux terminal, the content is detailed and easy to understand, the operation details are reasonable, and has a certain reference value. If you are interested, you might as well follow the editor and learn more about "how to view the public IP in the Linux terminal".
Public addresses are assigned by InterNIC and consist of class-based network ID or CIDR-based address blocks (called CIDR blocks) and ensure uniqueness in the global Internet. When the public address is assigned, its route will be recorded in the router in the Internet, so that the traffic accessing the public address can arrive smoothly. Traffic to the destination public address can be reached via the Internet. For example, when a CIDR block is assigned to an organization in the form of a network ID and a subnet mask, the corresponding [network ID, subnet mask] is also stored in the router in the Internet as a route. IP packets that target the address in the CIDR block are directed to the corresponding location.
Here are the two main commands we use, curl and wget. You can change it.
Output in Curl plain text format:
Output in curl icanhazip.com curl ifconfig.me curl curlmyip.coma curl ip.appspot.com curl ipinfo.io/ip curl ipecho.net/plain curl www.trackip.net/icurl JSON format:
Output in curl ipinfo.io/json curl ifconfig.me/all.json curl www.trackip.net/ip?jsoncurl XML format:
Curl ifconfig.me/all.xmlcurl gets all the IP details (excavator)
Curl ifconfig.me/all uses DYDNS (useful when you use DYDNS services)
Curl-s' http://checkip.dyndns.org' | sed 's/.*Current IP Address:\ ([0-9\.] *\). * /\ 1 grep-o "[[: digit:].]\ +" use Wget instead of Curl. "
Wget http://ipecho.net/plain-O-Q; echo wget http://observebox.com/ip-O-Q; echobash script example:
#! / bin/bash PUBLIC_IP= `wget http://ipecho.net/plain-O-Q; echo`wget $PUBLIC_IP on "how to view public IP in Linux terminal", that's all. For more related content, you can search for previous articles, hoping to help you answer questions and questions. Please support the website!
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.