Search docs/
Getting StartedPlugins

Network Interface

Network interface information plugin for Cordova/PhoneGap that supports Android, Blackberry 10, Browser, iOS, and Windows Phone 8.

Stuck on a Cordova issue?

If you're building a serious project, you can't afford to spend hours troubleshooting. Ionic’s experts offer premium advisory services for both community plugins and premier plugins.

Contact Us Today!


npm install cordova-plugin-networkinterfacenpm install @ionic-native/network-interfaceionic cap syncionic cordova plugin add cordova-plugin-networkinterfacenpm install @ionic-native/network-interface
Ionic Enterprise comes with fully supported and maintained plugins from the Ionic Team. Learn More or if you're interested in an enterprise version of this plugin Contact Us

Supported Platforms

  • Android
  • BlackBerry 10
  • Browser
  • iOS
  • Windows
  • Windows Phone



See here.


import { NetworkInterface } from '@ionic-native/network-interface/ngx';

constructor( private networkInterface: NetworkInterface ) {

    .then(address =>`IP: ${address.ip}, Subnet: ${address.subnet}`))
    .catch(error => console.error(`Unable to get IP: ${error}`));

    .then(address =>`IP: ${address.ip}, Subnet: ${address.subnet}`))
    .catch(error => console.error(`Unable to get IP: ${error}`));

  const url = '';
    .then(proxy =>`Type: ${proxy.type}, Host: ${}, Port: ${proxy.port}`))
    .catch(error => console.error(`Unable to get proxy info: ${error}`));