[Format recovered from top-posting.]
[EMAIL PROTECTED] writes:
> codecraig ha scritto:
>>how can i use python to figure the ip address of the machine which
>> the python script is running on? I dont mean like 127.0.0.1but i
>> want the external IP address (such as ipconfig on windows disp
http://checkip.tk/
codecraig ha scritto:
> hi,
>how can i use python to figure the ip address of the machine which
> the python script is running on? I dont mean like 127.0.0.1but i
> want the external IP address (such as ipconfig on windows displays).
>
> any ideas??
>
> THanks
--
ht
import socket
print socket.gethostbyname( socket.gethostname() )
--
http://mail.python.org/mailman/listinfo/python-list
On 2005-04-15, codecraig <[EMAIL PROTECTED]> wrote:
> hi,
>how can i use python to figure the ip address of the machine which
> the python script is running on? I dont mean like 127.0.0.1but i
> want the external IP address (such as ipconfig on windows displays).
>
> any ideas??
>
I use
In article <[EMAIL PROTECTED]>,
Simon Brunning <[EMAIL PROTECTED]> wrote:
> On 15 Apr 2005 06:03:06 -0700, codecraig <[EMAIL PROTECTED]> wrote:
> > hi,
> >how can i use python to figure the ip address of the machine which
> > the python script is running on? I dont mean like 127.0.0.1but
codecraig wrote:
> hi,
>how can i use python to figure the ip address of the machine which
> the python script is running on? I dont mean like 127.0.0.1but i
> want the external IP address (such as ipconfig on windows displays).
I use the following (all on one line):
external_ip = os.pop
codecraig wrote:
hi,
how can i use python to figure the ip address of the machine which
the python script is running on? I dont mean like 127.0.0.1but i
want the external IP address (such as ipconfig on windows displays).
any ideas??
THanks
To get the public IP (like when you're behind a wi
On 15 Apr 2005 06:03:06 -0700, codecraig <[EMAIL PROTECTED]> wrote:
> hi,
>how can i use python to figure the ip address of the machine which
> the python script is running on? I dont mean like 127.0.0.1but i
> want the external IP address (such as ipconfig on windows displays).
On Window
hi,
how can i use python to figure the ip address of the machine which
the python script is running on? I dont mean like 127.0.0.1but i
want the external IP address (such as ipconfig on windows displays).
any ideas??
THanks
--
http://mail.python.org/mailman/listinfo/python-list