GithubHelp home page GithubHelp logo

droid-max / ip2region Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lyy910203/ip2region

1.0 1.0 0.0 3.25 MB

Go语言写的通过IP快速查看地区,准确率99.99999%,无需联网

License: Apache License 2.0

Go 37.31% Shell 62.69%

ip2region's Introduction

ip2region

用途

Go语言写的通过IP快速查看地区,准确率99.99999%,无需联网

安装

1.根据系统下载编译好的最新releases包直接运行

https://github.com/lyy910203/ip2region/releases

2.go编译 go>1.13
git clone https://github.com/lyy910203/ip2region.git
go build 

使用

1.启动

linux:

chmod +x ip2region
ip2region --help
Usage of ./ip2region:
  -h string
    	run in host ip,default 0.0.0.0 (default "0.0.0.0")
  -p int
    	run in port,default 80 (default 80)

windows:

ip2region.exe --help
Usage of ./ip2region:
  -h string
    	run in host ip,default 0.0.0.0 (default "0.0.0.0")
  -p int
    	run in port,default 80 (default 80)

2.查询

查询访问者的IP地区:访问http://{服务器IP}:{-p指定的端口,默认80}/ip
查询任意IP地区:访问http://{服务器IP}:{-p指定的端口,默认80}/ip?ip={待查询的IP}

ip2region's People

Contributors

lyy910203 avatar droid-max avatar

Stargazers

Patrick Wang avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.