/remoteip

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

Primary LanguageGoGNU General Public License v3.0GPL-3.0

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