GitHunt
MI

mindc/remoteip

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

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

https://ip.mindc.net/plain

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

8.8.8.8

https://ip.mindc.net/json

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

{"ip":"8.8.8.8"}

https://ip.mindc.net/jsonp?callback=YOUR_CALLBACK

method: GET
response (text/javascript):

YOUR_CALLBACK("8.8.8.8");

https://ip.mindc.net/jsonrpc

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

Languages

Go96.3%Makefile3.7%

Contributors

GNU General Public License v3.0
Created April 4, 2017
Updated May 2, 2020
mindc/remoteip | GitHunt