/myip

HTTP endpoint which returns the requester's own IP address in JSON format

Primary LanguageGoGNU Lesser General Public License v2.1LGPL-2.1

myip

This is an HTTP endpoint which returns the requester's own IP address in JSON format.

Usage

This is the output of the program when it is invoked with the -h argument:

usage: /myip

HTTP endpoint which returns the requester's own IP address in JSON format

  -listen string
    	local address and port to listen on (default "0.0.0.0:8000")