0

I am trying to use World Time Api to get the ip address assigned by my ISP. In Micro Python on an RPi Pico W my_ip = json["client_ip"] returns an ipv4 address and in Python3 on a RPi 4B it returns an ipv6 address. I would like to get the ipv4 version in both cases. How do I get the ipv4 address in Python3 on a RPi 4B using Python3?

0 Answers0