[Quick Question] Esp8266 and Esp32 print ip adress'es

How i can prompt to ip address of my device in Riot os ? I have tried several ways and even looked into sdk of esp8266. but could not succeed.

It is really hard to find ipv6 adress of the device. AP supports ipv6 but does not give any info. And it is better to prompt ip adress when esp_wifi module is used.

I run this example [1]

1- https://riot-os.org/api/group__net__sock__udp.html#ga1a0e4c3a85b42cfcdc2f016dd2c96c83

Thanks a lot.


Thanks for your help!

I solved my question using nano coap server example.

-> My method is :

Add this before main function.