Skip to main content

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?

Don't waste precious time on plugin issues.

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.


$ npm install cordova-plugin-networkinterface $ npm install @ionic-native/network-interface $ ionic cap sync

Supported Platforms#

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



Learn more about using Ionic Native components in React


import { NetworkInterface } from '@ionic-native/network-interface/ngx';
constructor( private networkInterface: NetworkInterface ) {
  this.networkInterface.getWiFiIPAddress()    .then(address =>`IP: ${address.ip}, Subnet: ${address.subnet}`))    .catch(error => console.error(`Unable to get IP: ${error}`));
  this.networkInterface.getCarrierIPAddress()    .then(address =>`IP: ${address.ip}, Subnet: ${address.subnet}`))    .catch(error => console.error(`Unable to get IP: ${error}`));
  const url = '';  this.networkInterface.getHttpProxyInformation(url)    .then(proxy =>`Type: ${proxy.type}, Host: ${}, Port: ${proxy.port}`))    .catch(error => console.error(`Unable to get proxy info: ${error}`));}