My OS is Windows 8.1 and i have Windows 7 and linux debian installed in Vmware. In python (2.7) when i try to get local ip address it shows vmware's ip address(Win7) instead of Win8.1 ip address(picture)! What is the problem?
I have set vmware's network adapter to NAT.
Edit: The code i used: socket.gethostbyname(socket.gethostname())