fkeles

what-is-my-ip.sh

Apr 5th, 2026
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.27 KB | Software | 0 0
  1. #get client IP
  2. curl -s https://api.ipify.org
  3. curl -s https://ifconfig.me
  4.  
  5. wget -qO- https://api.ipify.org
  6.  
  7. #json
  8. curl -s https://api.ipify.org?format=json
  9. wget -qO- 'https://api.ipify.org?format=json'
  10.  
  11. #dns based
  12. dig +short myip.opendns.com @resolver1.opendns.com
Advertisement
Add Comment
Please, Sign In to add comment