IP Discover

Codigo para mostrar la IP de tu ordenador:

# Python Program to Get IP Address 
import socket

hostname = socket.gethostname() 
IPAddr = socket.gethostbyname(hostname) 
print("Name is:" + hostname) 
print("IP Address is:" + IPAddr)