Go to file
Martin Polden f3ce17ff32 Add Vagrantfile 2013-11-16 22:15:46 +01:00
assets/js Remove coffeescript bs 2013-05-10 15:05:46 +02:00
.gitignore Update gitignore 2012-11-25 21:21:26 +01:00
Makefile Add makefile 2012-11-25 14:49:16 +01:00
README.md Update readme 2012-11-21 14:12:38 +01:00
Vagrantfile Add Vagrantfile 2013-11-16 22:15:46 +01:00
daemonize.sh Make daemonize script more robust 2013-05-23 10:57:58 +02:00
ifconfig.go Add JSON output 2012-11-25 22:41:27 +01:00
index.html Remove coffeescript bs 2013-05-10 15:05:46 +02: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)

Dependencies (optional)

Why?

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

Code style

$ gofmt -tabs=false -tabwidth=4