Skip to content

Simplest cli tool to get your IP on Mac (local, external, gateway)

License

Notifications You must be signed in to change notification settings

adriangalilea/homebrew-ip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ip

Simplest cli tool to get your IP on Mac (local, external, gateway)

install

tap it first brew tap adriangalilea/ip then install brew install ip should work

usage

local, default option, also -l

❯ ip
Local IPs:
  192.168.1.38 - ine
  192.168.1.50 - ine

gateway

❯ ip -g
Gateway IP:
  192.168.1.1

external

❯ ip -e
External IP:
  88.7.14.121

all

❯ ip -a
Local IPs:
  192.168.1.38 - ine
  192.168.1.50 - ine
Gateway IP:
  192.168.1.1
External IP:
  88.7.14.121

About

Simplest cli tool to get your IP on Mac (local, external, gateway)

Resources

License

Stars

Watchers

Forks

Packages

No packages published