I'm trying to get a host's ip address using this code:
import os
import socket
ip = socket.gethostbyname(os.environ['COMPUTERNAME'])
the problem is that this host has VMware installed and the IP I get with the code above is that belonging to VMware, and not to the host. How can I fix this without uninstalling VMware? :P