Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

CLI and NPM package for fetching your external IP-address.

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bin
Octocat-spinner-32 lib
Octocat-spinner-32 .gitignore
Octocat-spinner-32 LICENSE
Octocat-spinner-32 README.md
Octocat-spinner-32 package.json
README.md

node-extip

A command line interface and npm package for fetching your external IP-address.

Install

npm -g install extip

Usage

The command line interface looks like this.

extip [options]

You can also require it as a module.

var extip = require('extip');

extip.fetch(
    function (ip) {
        console.log(ip);
    },
    function (errors) {
        errors.forEach(function (err) {
            console.log('ERR: ' + err);
        });
    }
);

And using a proxy ..

extip.proxy('http://10.0.0.1:8080').fetch();
Something went wrong with that request. Please try again.