Skip to content

one binary solution to see all IP addresses on a linux/osx/win machine

License

Notifications You must be signed in to change notification settings

egidijus/showipaddress

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

showipaddress

What?

one binary solution to see all IP addresses for:

  • linux
  • windows
  • osx
  • bsd
  • arm64

How?

Download a release version or build your own with make

Go get/install

go install github.com/egidijus/showipaddress@latest

Build

make all

How to install latest version

OSX

wget $(curl -sL https://api.github.com/repos/egidijus/showipaddress/releases/latest | jq -r '.assets[].browser_download_url' | grep -e darwin | grep amd64) -O ~/.local/bin/showipaddress
chmod +x ~/.local/bin/showipaddress

Linux

wget $(curl -sL https://api.github.com/repos/egidijus/showipaddress/releases/latest | jq -r '.assets[].browser_download_url' | grep -e linux | grep amd64) -O ~/.local/bin/showipaddress
chmod +x ~/.local/bin/showipaddress

sample output

./build/linux-amd64/showipaddress
127.0.0.1
::1
192.168.1.14
172.30.0.1
172.22.0.1
172.27.0.1
192.168.49.1