API Reference › Udp › Udp.local_ip
method

Udp.local_ip

Udp.local_ip() -> int

The address this machine reaches the internet from - the one a player on the same network would dial. No packet is sent; 0 when there is no route.

Example

program Demo {
  entry {
    print(Udp.ip_text(ip: Udp.local_ip()))
  }
}
← All symbols