https://toitlang.org/ logo
Find ip address on local network
# help
a
I'm sure I'm being blind, but which toit service can I find the current IP address from on the local network? Currently looking at https://github.com/toitlang/toit/blob/526e16593cd92cf2b897cb4acaf264dec59c2f68/lib/esp32/net/ethernet.toit#L285-L287 for inspiration
f
The IP address comes from an opened network:
Copy code
import net

main:
  network := net.open
  print network.address
  network.close