Revision: 26041
Updated Code
at April 16, 2010 23:06 by oznek
Updated Code
import socket s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.connect(('google.com', 0)) s.getsockname()[0]
Revision: 26040
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at April 16, 2010 22:48 by oznek
Initial Code
import socket s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) s.connect((\'google.com\', 0)) s.getsockname()[0]
Initial URL
http://commandline.org.uk/python/how-to-find-out-ip-address-in-python/
Initial Description
Initial Title
How to find out your IP address in Python
Initial Tags
python, ip
Initial Language
Python