Trying to execute this code. But i get the above error.
from urllib.request import FancyURLopener
from urllib.request import urlopen
exam = urllib.request.urlopen("192.168.2.2")
print(exam.read)
exam.close()
I expect to open the provided IP address.