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

Folders and files

NameName
Last commit message
Last commit date

Latest commit

2ae6159 · Oct 7, 2019

History

11 Commits
Oct 3, 2019
Aug 30, 2018
Oct 3, 2019
Aug 30, 2018
Oct 3, 2019
Aug 29, 2018
Aug 29, 2018
Oct 3, 2019
Oct 3, 2019
Oct 3, 2019
Oct 3, 2019
Oct 3, 2019
Oct 3, 2019
Oct 3, 2019
Oct 3, 2019
Sep 4, 2018

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 http://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