Find My IP-id and name
import socket
hostname = socket.gethostname()
ipaddr = socket.gethostbyname(hostname)
print('your computer name:',hostname)
print('your computer IP:',ipaddr)
your computer name: mmblack
your computer IP: 127.0.1.1
import socket
hostname = socket.gethostname()
ipaddr = socket.gethostbyname(hostname)
print('your computer name:',hostname)
print('your computer IP:',ipaddr)
your computer name: mmblack
your computer IP: 127.0.1.1