Cara Mendapatkan Alamat IP PC Menggunakan Python
import socket
hostname = socket.gethostname()
local_ip = socket.gethostbyname(hostname)
print(local_ip)
#it's work
Said HR