<br />

<br />

## Description

Use the `chrome.system.network` API.

<br />

<br />

## Permissions

`system.network`  

<br />

<br />

<br />

<br />

## Types

### NetworkInterface

#### Properties

- address string

  The available IPv4/6 address.
- name string

  The underlying name of the adapter. On \*nix, this will typically be "eth0", "wlan0", etc.
- prefixLength number

  The prefix length

## Methods

### getNetworkInterfaces()

Promise

```typescript
chrome.system.network.getNetworkInterfaces(
  callback?: function,
): Promise<https://developer.chrome.com/docs/apps/reference/system/network#type-NetworkInterface[]>
```

Retrieves information about local adapters on this system.

#### Parameters

- callback function optional


  The `callback` parameter looks like:

  ```typescript
  (networkInterfaces: NetworkInterface[]) => void
  ```

  <br />

  - networkInterfaces [NetworkInterface](https://developer.chrome.com/docs/apps/reference/system/network#type-NetworkInterface)\[\]

    Array of object containing network interfaces information.

#### Returns

- Promise\<[NetworkInterface](https://developer.chrome.com/docs/apps/reference/system/network#type-NetworkInterface)\[\]\>
  Chrome 91+


  Promises are only supported for Manifest V3 and later, other platforms need to use callbacks.

<br />