47.128.45.40

{
  "ip":"47.128.45.40",
  "city":null,
  "region":null,
  "country":"CA",
  "loc":"43.6319,-79.3716",
  "org":null,
  "asn":null,
  "postal":null
}

Curl or wget this page for raw json output.