find-external-interface
Find the name of a network interface bound to an external (non-localhost) IP address
Usage
This module exports a single function, findExternalInterface.
findExternalInterface
Find the name of a network interface bound to an external (non-localhost) IP address or null
if none found. This function returns the name of the first interface which satisfies the criteria.
Parameters
options
Object? Options
Examples
const findExternalInterface = ;const name = ; // 'eth0'const info = ; // ip address, etc.
Returns string? Interface name
Installation
$ npm install find-external-interface
Requirements
- Node.js v4.0.0 or greater
License
© 2017 Christopher Hiller. Licensed MIT.