There\'s a code I found in internet that says it gives my machines local network IP address:
hostname = socket.gethostname() local_ip = socket.gethostbyname(h