This page is part of the documentation for the Chrome Apps platform, which was deprecated in 2020. It remains supported for Enterprise and Education customers on ChromeOS until at least Jan 2025. Learn more about migrating your app.

chrome.system.network

Description

Use the chrome.system.network API.

Permissions

system.network

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
chrome.system.network.getNetworkInterfaces(
callback?: function,
)
: Promise<NetworkInterface []>

Retrieves information about local adapters on this system.

Parameters

  • callback

    function optional

    The callback parameter looks like:

    (networkInterfaces: NetworkInterface []) => void

    • networkInterfaces

      Array 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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年08月07日 UTC.