Skip to content

Small shell script to display your current WAN IP address

Notifications You must be signed in to change notification settings

BigFunnyGiant/bash-whatismyip

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 

Repository files navigation

WhatIsMyIP

This is a whatismyip bash script for linux. It depends on a bunch of services, picks one randomly and executes curl to determine your WAN IP address. It returns only that, nothing else.

Installing

git clone https://github.com/BigFunnyGiant/bash-whatismyip # clone the repository
cd bash-whatismyip/bin
cp whatismyip.sh /usr/local/bin

or copy it to somewhere you like, maybe in the PATH so you can execute it from anywhere

Usage

./whatismyip.sh 4 for IPV4
./whatismyip.sh 6 for IPV6
or
./whatismyip.sh and it will ask you which

Dependencies

  • bash
  • sed
  • curl

About

Small shell script to display your current WAN IP address

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 100.0%