Answers for "how to get the ip of a website"

2

how to get the ip of a website

nslookup web-address
Posted by: Guest on March-18-2022
1

how to find a website ip address

import socket
# create an INET, STREAMing socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
print("What website's ip would you like to find?")
site = input()

print((socket.gethostbyname(site), 80))
Posted by: Guest on January-17-2022

Code answers related to "how to get the ip of a website"

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language