Retrieve the external IP address.
()
| 71 | return None |
| 72 | |
| 73 | def get_my_ip(): |
| 74 | """Retrieve the external IP address.""" |
| 75 | try: |
| 76 | return requests.get('https://icanhazip.com').text.strip() |
| 77 | except Exception as e: |
| 78 | print(f"[!] Error fetching external IP: {e}") |
| 79 | return None |
| 80 | |
| 81 | def get_whois_info(ip): |
| 82 | """Retrieve whois data for the given IP.""" |
no outgoing calls
no test coverage detected