Ethan-Zhang / PyLocalIP

Get local ip addr using python!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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()

About

Get local ip addr using python!


Languages

Language:Python 100.0%