Get your internal IP address
The async functions use a UDP connection to determine the address of the internet-facing interface (no packets are sent). When that fails (for example, when offline), it falls back to scanning os.networkInterfaces(). The sync functions always use os.networkInterfaces(). If multiple non-internal interfaces are present and the internet-facing interface cannot be determined, undefined will be returned to avoid selecting the wrong interface.
Returns the internal IPv6 address asynchronously.
Returns the internal IPv4 address asynchronously.
Returns the internal IPv6 address synchronously.
Returns the internal IPv4 address synchronously.