Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/alsotang/externalip

get your external ip in Node.js
https://github.com/alsotang/externalip

Last synced: 2 months ago
JSON representation

get your external ip in Node.js

Awesome Lists containing this project

README

        

# externalip

**WARNING**: perhaps https://github.com/sindresorhus/public-ip is more and more fast, but opendns does not work fine at mainland china.

[![Build Status](https://travis-ci.org/alsotang/externalip.svg?branch=master)](https://travis-ci.org/alsotang/externalip)

get your external ip in Node.js. Based on http://ip.cn .

## install

```bash
npm i externalip
```

## usage

```js
externalip(function (err, ip) {
console.log(ip); // => 8.8.8.8
});
```