Re: Python to tell what is the IP of my PC .

2006-11-09 Thread MC
http://monip.org/ -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Python to tell what is the IP of my PC

2006-11-08 Thread 空心菜
>>> import re,urllib2 >>> re.search('\d+\.\d+\.\d+\.\d+',urllib2.urlopen("http://www.hereismyip.com";).read()).group() 'xx.xx.xxx.xxx′ On 11月9日, 上午11时06分, Hieu Hoang <[EMAIL PROTECTED]> wrote: > Hi list, > I think a script to extract the IP from some websites like > whatismyip.com could do the jo

Re: Python to tell what is the IP of my PC

2006-11-08 Thread Hieu Hoang
Hi list, I think a script to extract the IP from some websites like whatismyip.com could do the job. I don't know how to write it though, sure someone can give direction on that. Cheers, Rooy -- http://mail.python.org/mailman/listinfo/python-list

Re: Python to tell what is the IP of my PC .

2006-11-08 Thread Cameron Walsh
Gabriel Genellina wrote: > At Wednesday 8/11/2006 21:18, Nicolas G wrote: > >> > How can I use python to get the real IP address of my DSL router (when >> > my PC is part of the local home LAN) ? >> >> http://aspn.activestate.com/ASPN

Re: Python to tell what is the IP of my PC .

2006-11-08 Thread BartlebyScrivener
NicolasG wrote: > How can I use python to get the real IP address of my DSL router http://whatismyip.com rd -- http://mail.python.org/mailman/listinfo/python-list

Re: Python to tell what is the IP of my PC .

2006-11-08 Thread Gabriel Genellina
At Wednesday 8/11/2006 21:18, Nicolas G wrote: > How can I use python to get the real IP address of my DSL router (when > my PC is part of the local home LAN) ? http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/162994 import

Re: Python to tell what is the IP of my PC .

2006-11-08 Thread Nicolas G
On 11/9/06, Tim Williams <[EMAIL PROTECTED]> wrote: On 8 Nov 2006 15:35:31 -0800, NicolasG <[EMAIL PROTECTED]> wrote:> How can I use python to get the real IP address of my DSL router (when> my PC is part of the local home LAN) ? The router will the PC's default gateway IP address,  if you are on a

Re: Python to tell what is the IP of my PC .

2006-11-08 Thread Tim Williams
On 09/11/06, Nicolas G <[EMAIL PROTECTED]> wrote: > > > On 11/9/06, Tim Williams <[EMAIL PROTECTED]> wrote: > > On 8 Nov 2006 15:35:31 -0800, NicolasG <[EMAIL PROTECTED]> wrote: > > > How can I use python to get the real IP address of my DSL router (when > > > my PC is part of the local home LAN) ?

Re: Python to tell what is the IP of my PC .

2006-11-08 Thread Tim Williams
On 8 Nov 2006 15:35:31 -0800, NicolasG <[EMAIL PROTECTED]> wrote: > How can I use python to get the real IP address of my DSL router (when > my PC is part of the local home LAN) ? The router will the PC's default gateway IP address, if you are on a windows platform, you can view it by typing IPC

Python to tell what is the IP of my PC .

2006-11-08 Thread NicolasG
How can I use python to get the real IP address of my DSL router (when my PC is part of the local home LAN) ? -- http://mail.python.org/mailman/listinfo/python-list