get default gateway device / IP
Project description
defgw
Get default gateway interface / IP (for Linux)
Parses/decodes /proc/net/route and prints def gw information
Install
pip3 install getdefgw
Usage
$ getdefgw
192.168.100.245
$ getdefgw --dev
wlp8s0
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
getdefgw-0.0.2.tar.gz
(2.2 kB
view hashes)