Go to file
Martin Polden e16e9a7aa9 Cleanup 2014-12-22 00:55:24 +01:00
assets/js Remove jQuery dep 2014-01-26 21:57:59 +01:00
salt Use salt for provisioning 2014-12-22 00:19:01 +01:00
.gitignore Cleanup 2014-12-22 00:55:24 +01:00
Dockerfile Add Dockerfile 2014-11-01 14:37:16 +01:00
Makefile Cleanup 2014-12-22 00:55:24 +01:00
README.md Cleanup 2014-12-22 00:55:24 +01:00
Vagrantfile Cleanup 2014-12-22 00:55:24 +01:00
ifconfig.go Cleanup 2014-12-22 00:55:24 +01:00
ifconfig_test.go Cleanup 2014-12-22 00:55:24 +01:00
index.html Replace Bootstrap with Pure 2014-02-15 15:32:03 +01:00

README.md

ifconfig.co: Simple IP address lookup service

A simple service for looking up your IP address. This is the code that powers http://ifconfig.co

Basic usage

The usual suspects

$ curl ifconfig.co
127.0.0.1
$ wget -q -O - ifconfig.co
127.0.0.1

BSD fetch

$ fetch -q -o - ifconfig.co
127.0.0.1

Pass the appropriate flag (usually -4 and -6) to your tool to switch between IPv4 and IPv6 lookup.

Features

  • Easy to remember domain name
  • Supports IPv4 and IPv6
  • Open source
  • Fast
  • Supports typical CLI tools (curl, wget and fetch)
  • JSON output (optional)

Why?

  • To scratch an itch
  • An excuse to use Go for something
  • Faster than ifconfig.me and has IPv6 support