Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

Latest commit

 

History

History
30 lines (23 loc) · 642 Bytes

README.md

File metadata and controls

30 lines (23 loc) · 642 Bytes

This project is the source code powering https://myip.sqooba.io.

It simply returns the IP address of the caller, is an easy-to-integrate manner

curl https://myip.sqooba.io
1.2.3.4

It can be used in scripts, such as updating an AWS security group to grant you ssh access:

myip=$(curl -s https://myip.sqooba.io)
aws ec2 authorize-security-group-ingress \
    --group-id $group \
    --protocol tcp \
    --port 22 \
    --cidr $myip/32

Hack

make all