ip address?
maximilianscherr
MaximilianScherr at T-Online.de
Fri Jan 25 19:55:31 EST 2002
thanks,
but this just returns my lan ip and not my dynamic inet ip
--- In python-list at y..., "Tim Peters" <tim.one at h...> wrote:
> [maximilianscherr]
> > how can i get the internet ip address of my connected pc?
>
> Give this a try; your money back if it blows up <wink>:
>
> import socket
> myip = socket.gethostbyname(socket.gethostname())
>
>
> --
> http://mail.python.org/mailman/listinfo/python-list
More information about the Python-list
mailing list