Description
Use the chrome.system.network API.
Permissions
system.networkTypes
NetworkInterface
Properties
- 
    addressstring The available IPv4/6 address. 
- 
    namestring The underlying name of the adapter. On *nix, this will typically be "eth0", "wlan0", etc. 
- 
    prefixLengthnumber The prefix length 
Methods
getNetworkInterfaces()
chrome.system.network.getNetworkInterfaces(
callback?: function,
): Promise<NetworkInterface[]>
Retrieves information about local adapters on this system.
Parameters
- 
    callbackfunction optional The callbackparameter looks like:(networkInterfaces: NetworkInterface[]) => void - 
    networkInterfacesArray of object containing network interfaces information. 
 
- 
    
Returns
- 
            Promise<NetworkInterface[]> Chrome 91+Promises are only supported for Manifest V3 and later, other platforms need to use callbacks.