import uuid
import socket
hostname = socket.gethostname()
IPAddr = socket.gethostbyname(hostname)
print("The Name of this device is: " + hostname)
print("The IP Address of this device is: " + IPAddr)
print ("The MAC address of this device is:",hex(uuid.getnode()))
No comments:
Post a Comment