Clean way to get one's network IP address?

Steven D'Aprano steve at REMOVE-THIS-cybersource.com.au
Fri Nov 23 19:05:13 EST 2007


On Fri, 23 Nov 2007 15:58:06 -0800, Dennis Lee Bieber wrote:

> On Fri, 23 Nov 2007 22:56:41 -0000, Steven D'Aprano
> <steve at REMOVE-THIS-cybersource.com.au> declaimed the following in
> comp.lang.python:
> 
> 
>> I'm not surprised. Windows XP usually stores the hosts file here:
>> 
>> C:\system32\drivers\etc\hosts
>> 
>> 
> 	Pardon...
> 
> 	My system shows:
> 
> 	C:\I386\HOSTS
> 	C:\WINDOWS\SYSTEM32\DRIVERS\ETC\HOSTS


I don't know about the i386, but you're absolutely write, I forgot the 
Windows directory. Oops.


-- 
Steven.



More information about the Python-list mailing list