net.local_ip

net.local_ip

net.local_ip

Function

reads the default local IP.

Syntax

Parameters

has no parameters.

Return Value

TypeDescription
StringReturns the default exit IP; returns 127.0.0.1 when detection fails.

Examples

Notes

  • Detect the default exit address through UDP and do not send business data.