/ifconfig

Public IP API

Primary LanguageRustApache License 2.0Apache-2.0

ifconfig - Public IP address API

cicd

Usage

Plaintext

curl -s 'https://ifconfig.jakemeyer.sh'
192.168.1.1

JSON

curl -s 'https://ifconfig.jakemeyer.sh/json' | jq
{"ip":"192.168.1.1"}

Setup

Docker Compose v3+

docker-compose.yml

services:
  ifconfig:
    container_name: "ifconfig"
    image: ghcr.io/jakewmeyer/ifconfig:latest
    ports:
      - "7000:7000"
    restart: "unless-stopped"
docker-compose up

Docker run

docker run -p 7000:7000 ghcr.io/jakewmeyer/ifconfig:latest