Self-host ifconfig.io
2024.10.05Fast IP and connection info echo service
- Stars
- 606
- Ports
- 8080 (HTTP listener for the service), 8443 (TLS listener when TLS is enabled)
georgyo/ifconfig.ioWhat is ifconfig.io?
ifconfig.io is a small Go web service that reports connection details back to whoever asks, in the spirit of ifconfig.me but tuned for throughput — the README claims a single server handles 18,000 requests per second while using about 50 MB of RAM. A browser page shows your IP address, remote host, country code, user agent, source port, language, referer, method, encoding, MIME type and X-Forwarded-For, and plain cURL endpoints such as /ip, /host, /country_code, /ua, /port, /lang, /encoding, /mime and /forwarded return each value as text, with /all available as XML, JSON or JavaScript. It is built on the gin framework to avoid per-request memory allocations. Self-hosting is a one-service Docker Compose file using the georgyo/ifconfig.io image; environment variables let you set the displayed hostname, listen port, proxy-protocol address, the request headers used to read the client IP and country code (Cloudflare's CF-Connecting-IP and CF-IPCountry by default), and optional TLS on a separate port. The published container image has not been refreshed in years, so building from source is the way to track changes.
Should you self-host ifconfig.io?
ifconfig.io scores 48/100 on selfhost.directory (how scoring works) and ranks #15 of 20 in Network Utilities. It has 606 GitHub stars.
There was no stable release in the past 12 months, so check the repository's recent activity before you rely on it.
Setup is easy: most people get it running in one sitting. An official Docker image is available. It is MIT-licensed and written mostly in HTML.
Its closest alternative on selfhost.directory is MyIP (75/100, 12 241 stars). It scores higher overall, so compare the two before you pick. See ifconfig.io vs MyIP side by side.
Features
- Country code reporting
- JSON Output
- Proxy-aware client IP
- Public IP echo
- Request header echo
- REST API
- Reverse DNS lookup
- TLS Support
- Web UI
- XML Output
ifconfig.io README
More in Network Utilities
Income Generator (IGM)Self-hosted tool to deploy and manage bandwidth-sharing apps like Honeygain via CLI, TUI, or web dashboard with multi-proxy scaling and auto-updates.
IT ToolsSelf-hosted, open-source collection of web tools for developers: hashing and encryption, format converters, QR codes, subnet math, cron and regex helpers.
LadderSelf-hosted, open-source HTTP proxy that strips CORS and paywall headers, injects code, and applies per-domain YAML rulesets; runs as a Go binary, Docker or Helm chart.
LibreSpeedSelf-hosted, open-source HTML5 speed test measuring download, upload, ping and jitter in the browser, with optional telemetry and multiple test points.
LuckySelf-hosted networking suite for routers: IPv6/IPv4 port forwarding, DDNS, reverse proxy, STUN tunneling, WOL, ACME certs, run as one Go binary with a web admin UI.
Maza ad blockingOpen-source, self-hosted local ad blocker written only in Bash: one command rebuilds your hosts file to block ad domains, no browser extensions needed.
MyIPOpen-source, self-hosted IP toolbox: look up IP and geolocation, detect WebRTC and DNS leaks, run speed, MTR, ping and Whois tests, all in one Docker container.
MySpeedSelf-hosted speed test tracking monitors internet connections with configurable retention, cron scheduling, multiple servers, and visualization options.
mystOpen-source GPL-3.0 implementation of a blockchain-based decentralized VPN network: WireGuard transport, provider and consumer modes, plus a browser NodeUI dashboard.
NetProbe_PythonA containerized network monitor that checks connectivity, DNS response times, and bandwidth, then shows results in a dark-themed web dashboard with historical graphs.
netronomeOpen-source, self-hosted network speed testing and monitoring: Speedtest.net, iperf3 and LibreSpeed tests, packet loss and DNS monitors, and server agents.
networking-toolboxSelf-hosted, offline-first toolbox with 100+ networking utilities for IP addressing, subnetting, converting and verifying server configs.
0 comments