mindc / remoteip

Simple REST API to get your remote ip address. Standalone http-server written in GO.

Home Page:https://ip.mindc.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simple RemoteIP REST API

Simple REST API to get your remote ip address.
Standalone http-server written in GO

Status

https://ip.mindc.net running...
https://ip4.mindc.net running...
https://ip6.mindc.net running...

API

method: GET,POST
response (text/plain):

8.8.8.8

method: GET,POST
response (application/json):

{"ip":"8.8.8.8"}

method: GET
response (text/javascript):

YOUR_CALLBACK("8.8.8.8");

method: POST
response (application/json):

{"jsonrpc":"2.0","id":"xFrB","result":"8.8.8.8"}

* require valid JSON-RPC 2.0 request with any string value as method

Source code

https://github.com/mindc/remoteip

Using https://github.com/valyala/fasthttp as net/http replacement.
Using https://github.com/buaazp/fasthttprouter as HTTP request router.
Using https://github.com/caarlos0/env as ENV parser.
Using https://github.com/sindresorhus/github-markdown-css for Markdown CSS

2017-2020

About

Simple REST API to get your remote ip address. Standalone http-server written in GO.

https://ip.mindc.net

License:GNU General Public License v3.0


Languages

Language:Go 96.3%Language:Makefile 3.7%