a bash script that fetch your remote ip base on whereismyip service
- git clone https://github.com/lzhaoyang/whereismyip.git
- cd whereismyip && chmod a+x install.sh && sh install.sh
run whereismyip
in terminal
here is output below:
--------------Your Ip Information--------------
Ip: xx.xx.x.xxx
--------------Location Information-------------
Country: China
State: Guangdong
City: Shenzhen
Postal Code: xxxxx
Time Zone: +08:00
----------------ISP Information----------------
ISP: China Unicom Guangdong Province Network
Host Name: xx.xxx.xx.xx
ASN: xxxx
---------------------End-----------------------