net.local_ip
net.local_ip
Function
reads the default local IP.
Syntax
net.local_ip()
Parameters
has no parameters.
Return Value
| Type | Description |
|---|---|
| String | Returns the default exit IP; returns 127.0.0.1 when detection fails. |
Examples
ip = net.local_ip() result = type(ip) // Output: String print result
Notes
- Detect the default exit address through UDP and do not send business data.