Personal tools
Document Actions

Get IP using Python

Up to table of contents

This FAQ applies to: Any version.

How to get IP address of my computer?
import socket
socket.gethostbyname(socket.gethostname())
socket.gethostbyname_ex(socket.gethostname())
by yongzhao — last modified 2006-11-04 14:17 Molecular Graphics Laboratory, TSRI

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: