Skip to content

fananchong/WhatsMyIP

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WhatsMyIP

Get the WAN && LAN IP address in golang

用途

提供服务,使用者可以获取自己的外网IP或局域网IP

编译

./build.sh

使用

开启whatsmyip服务器

./whatsmyip --port=3000

获取自己IP

curl http://ip:3000

ip为whatsmyip所在服务器的外网IP或局域网IP。

相应的,返回自己的外网IP或局域网IP

docker

docker pull fananchong/whatsmyip
docker run -d --restart=always -p 3000:3000 fananchong/whatsmyip

docker swarm

cd docker-swarm
./install.sh

About

Get the WAN && LAN IP address in golang

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published