Sign inSign up

yyaadet/ip2loc

By yyaadet

Updated almost 11 years ago

ip to location service

Image
0

194

yyaadet/ip2loc repository overview

How to start

jobid=$(docker run -d --name windbell-ip2location -p 7890:7890 yyaadet/ip2location:1.0)
echo "start ip2location: Job is ${jobid}"

How to use

visit http://${Host}:7890/ipinfo?src=${ip}, return city information, format is

{
	"return":"ok",
	"ip":"8.8.8.8",
	"area":"\u0055\u0053",
	"isp":""
}

visit http://${Host}:7348/iplocation?src=${ip}, return city code, format is

{"return":"ok","location":"41"}

Tag summary

Content type

Image

Digest

sha256:6bd65f7ef

Size

75.6 MB

Last updated

almost 11 years ago

docker pull yyaadet/ip2loc:1.0