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
Mokus
  • 10,174
  • 18
  • 80
  • 122

0 Answers0