Convert IP Address to Hostname using Python September 10, 2020 Python 0 Comments 764 Views socket library import socket ip = '8.8.8.8' hostname = socket.gethostbyaddr(ip)[0] print(hostname)
Leave a Comment
Cancel reply