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

Sqooba/http-myip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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