You could perhaps use this method import socket myIP = socket.gethostbyaddr(socket.gethostname())[2]
Jay On Jan 2, 2008 8:25 AM, shawn bright <[EMAIL PROTECTED]> wrote: > Greetings, > > i am looking for an easy way to get my own ip address as a string from > python. > I am using Ubuntu Linux if that makes any difference. > thanks ! > > shawn > > _______________________________________________ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > >
_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor