local network = require("network") local handle = network.udp(); network.setpeername(handle, "8.8.8.8", "80") local ip, _ = network.getsockname(handle) print(ip)