Danny Yoo wrote: >On Fri, 5 Aug 2005, Joseph Quigley wrote: > > > >>Is it possible to get my internet and/or network IP address from Python? >>Is there any other way to get it? >> >> > >Hi Joe, > >I think you're looking for socket.gethostbyname(). > > http://www.python.org/doc/lib/module-socket.html#l2h-2594 > >Here's an example using the socket.gethostbyname() function: > > http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/335890 > > > > Oh.. btw I don't think that will work on the internet. Cause a friend of mine has the 192.168.0.2 IP. My internet IP should be IPv6 and I don't think it changes...
I'm also looking for my IP address that websites can block. But still I've found a use for the current tutorials, Thanks, JQ _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor