Skip to content

A simple way to get your public IP address and other connection related information from any device.

Notifications You must be signed in to change notification settings

StackFocus/SwagIP-go

Repository files navigation

SwagIP (GO Edition)

A simple way to get your public IP address and other connection related information.

This project was forked from our other project https://github.com/StackFocus/SwagIP to help us learn go.

Examples of retrieving your public IP address from Linux/Unix CLI:

wget -qO - ip.swagger.pro
curl ip.swagger.pro
fetch -qo - ip.swagger.pro

Example of retrieving your public IP address from PowerShell 3+:

Invoke-RestMethod https://ip.swagger.pro

Authors

Installation

  • Install the binary from the Releases or compile yourself:
$ make build
$ GO_ENV=production ADDR=0.0.0.0 PORT=8080 ./SwagIP

Testing

$ make test

Docker

Docker is used to scale the application

$ docker build -t swagip .
$ docker run -p 0.0.0.0:80:3000 swagip

Screenshots

Browser Information:

Browser Information

Wget Commands:

Wget Commands

Curl Commands:

Curl Commands

Fetch Commands:

Fetch Commands

PowerShell Commands:

PowerShell Commands

About

A simple way to get your public IP address and other connection related information from any device.

Resources

Stars

Watchers

Forks

Packages

No packages published