Finds the IP address of the current connection. Example: 47.31.226.180
(proxy=None)
| 113 | class IPUtils: |
| 114 | @staticmethod |
| 115 | def get_ip(proxy=None): |
| 116 | """ |
| 117 | Finds the IP address of the current connection. |
| 118 | |
| 119 | Example: 47.31.226.180 |
| 120 | """ |
| 121 | ip = _find_ip(proxy=proxy) |
| 122 | while ip is None: |
| 123 | print("Failed to get IP. Retrying...") |
| 124 | ip = _find_ip(proxy=proxy) |
| 125 | return ip |
| 126 | |
| 127 | @staticmethod |
| 128 | def get_ip_info(proxy=None): |
nothing calls this directly
no test coverage detected