pyLocalIP

Get Local IP using Python


Keywords
localip, local ip, local_ip
License
Zed
Install
pip install pyLocalIP==1.0.0

Documentation

PyLocalIP

Overview

Get Linux system local IP with system call ioctl using python! Safty, fast and flexible

Installation

pip install PyLocalIP

Usage

import PyLocalIP
local_ip = PyLocalIP.get_local_ip("eth0")
#or default with eth0
local_ip = PyLocalIP.get_local_ip()