IP address lookup service
Go to file
Martin Polden 40df3e5a38 Rewrite
2015-09-17 21:18:06 +02:00
api Rewrite 2015-09-17 21:18:06 +02:00
.gitignore Update gitignore 2014-12-26 22:47:20 +01:00
index.html Rewrite 2015-09-17 21:18:06 +02:00
LICENSE Add license 2014-12-22 21:52:26 +01:00
main.go Rewrite 2015-09-17 21:18:06 +02:00
Makefile Rewrite 2015-09-17 21:18:06 +02:00
README.md Cleanup 2014-12-22 00:55:24 +01:00

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