myip 0.2

Simply print the IP of the current host
myip is a simple tool for displaying the current IP.

After 30 years of TCP/IP, it's about time to have a tool that simply displays an IP. The current popular tools (ifconfig, ip addr show) provide complex output and argument set, while usually we run them in order to simply get an answer to the question "which IP(s) are configured on this host?".

myip is intended to be used by both scripts and humans.

API may be added later.

Installing

sudo pip install myip

Uninstall using pip uninstall myip

Usage

myip
- prints the primary IP.

myip --all
- prints all IPs configured on the system

myip < iface name >
- prints the IP of given interface, e.g. eth0.

last updated on:
June 27th, 2012, 14:17 GMT
price:
FREE!
developed by:
Oren Held
homepage:
www.github.com
license type:
MIT/X Consortium License 
category:
ROOT \ System \ Networking

FREE!

In a hurry? Add it to your Download Basket!

user rating

UNRATED
0.0/5
 

0/5

174 DOWNLOADS

Add your review!

SUBMIT