Convert Hostname to IP Address using Python September 9, 2020 Python 0 Comments 795 Views socket library import socket hostname = 'google.com' ip = socket.gethostbyname(hostname) print(ip)
Leave a Comment
Cancel reply