Skip to content

Instantly share code, notes, and snippets.

@membrive
Created August 31, 2017 13:40
Show Gist options
  • Save membrive/23860d8df9932beb38b843d8500df647 to your computer and use it in GitHub Desktop.
Save membrive/23860d8df9932beb38b843d8500df647 to your computer and use it in GitHub Desktop.
Check Ipify to know your public IP
#!/bin/bash
ip=$(curl -s https://api.ipify.org)
echo "Current public IP address: $ip"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment