Obtenha IPv4 local
hostname = socket.gethostname()
local_ip = socket.gethostbyname(hostname)
Misty Monkey
hostname = socket.gethostname()
local_ip = socket.gethostbyname(hostname)