Exception while retriving IP Address


  • from smartapi import SmartConnect

    for above I got the following Exception

    Exception while retriving IP Address,using local host IP address HTTPSConnectionPool(host='api.ipify.org', port=443): Max retries exceeded with url: / (Caused by NewConnectionError('<urllib3.connection.HTTPSConnection object at 0x0000022DD5838C40>: Failed to establish a new connection: [Errno 11001] getaddrinfo failed'))