5

Possible Duplicate:
Finding local IP addresses using Python's stdlib

How can I get my Ip address?

socket.gethostbyname( socket.gethostname() )  

this is returning 127.0.1.1 but how can I get my real IP?

Community
  • 1
  • 1
OHLÁLÁ
  • 9,782
  • 18
  • 79
  • 121

0 Answers0