Re: IP address of webserver

2007-01-27 Thread Gabriel Genellina
"Johny" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > How can I find server's IP address? >>From console I can use ping, for example: > > C:\RobotP\cgi-bin>ping www.google.com > Pinging www.google.com [209.85.129.147] with 32 bytes of data: > [...] > But how can I find it di

Re: IP address of webserver

2007-01-27 Thread Paul Rubin
"Johny" <[EMAIL PROTECTED]> writes: > So I know that www.google.com has 209.85.129.147 IP address. > But how can I find it directly from Python script? >>> import socket >>> print socket.gethostbyname('www.google.com') 66.102.7.147 >>> -- http://mail.python.org/mailman/listinfo/python-list