guild icon
Toit
#Find ip address on local network
Thread channel in help
addshore
addshore 10/15/2024 09:15 AM
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
Program your microcontrollers in a fast and robust high-level language. - toitlang/toit
addshoreOPaddshore
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/526e16593cd...
floitsch
floitsch 10/15/2024 01:25 PM
The IP address comes from an opened network:
import net main: network := net.open print network.address network.close
💟1
2 messages in total