How can i find my ip address with python not local ip ? I try with socket but it find local ip.I need to ethernet outer ip.That's my code but it find local ip
import socket
hostname = socket.gethostname()
IPAddr = socket.gethostbyname(hostname)
print("Your Computer Name is:" + hostname)
print("Your Computer IP Address is:" + IPAddr)