Skip to content
macvkPublic

About

Detect your IP addresses

Resources

Stars

31 stars

Watchers

4 watching

Forks

Latest commit

 

History

16 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My IP

The clients show your public IPv4 and IPv6 addresses, country, and ASN. They also try usable local source addresses to detect additional public routes.

POSIX shell

The shell client requires curl and standard Unix networking tools.

  1. Download myip.sh:
curl -fLO https://raw.githubusercontent.com/macvk/myip/master/myip.sh
chmod +x myip.sh
  1. Run it:
./myip.sh

Python

The Python client requires Python 3 and uses only the standard library.

curl -fLO https://raw.githubusercontent.com/macvk/myip/master/myip.py
python3 myip.py

On Windows, run python myip.py.

Go

The Go client uses only the standard library.

curl -fLO https://raw.githubusercontent.com/macvk/myip/master/myip.go
go build -o myip myip.go
./myip

On Windows:

go build -o myip.exe myip.go
myip.exe

Windows batch file

The batch client requires Windows PowerShell and curl.exe.

powershell -command "& { (New-Object Net.WebClient).DownloadFile('https://raw.githubusercontent.com/macvk/myip/master/myip.bat', 'myip.bat') }"
myip.bat

About

Detect your IP addresses

Resources

Stars

31 stars

Watchers

4 watching

Forks

Releases

Packages

Contributors

Languages