Click or drag to resize

NetUtilsGetLocalIp Method

Get first detected local ip address

Namespace: LiteNetLib
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public static string GetLocalIp(
	LocalAddrType addrType
)

Parameters

addrType  LocalAddrType
type of address (IPv4, IPv6 or both)

Return Value

String
IP address if available. Else - string.Empty
See Also