Write a program to check your external ip address


Topic: Write a program to check your external ip address

Solution

import re
import requests
url = "http://checkip.dyndns.org"
request = requests.get(url)
clean = request.text.split(': ', 1)[1]
your_ip = clean.split('', 1)[0]
print("your IP Address is: ",  your_ip)



List all Python Programs