Re: Determine ip address

2005-05-05 Thread Mike Meyer
[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

Re: Determine ip address

2005-05-05 Thread ontiscal
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

Re: Determine ip address

2005-04-15 Thread fuzzylollipop
import socket print socket.gethostbyname( socket.gethostname() ) -- http://mail.python.org/mailman/listinfo/python-list

Re: Determine ip address

2005-04-15 Thread Lee Harr
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

Re: Determine ip address

2005-04-15 Thread Donn Cave
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

Re: Determine ip address

2005-04-15 Thread Andy Jeffries
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

Re: Determine ip address

2005-04-15 Thread rbt
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

Re: Determine ip address

2005-04-15 Thread Simon Brunning
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

Determine ip address

2005-04-15 Thread codecraig
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