Skip to content

karkipy/whichIp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

Which Ip

A simple bash script to find ip

Motivation

Working in react-native, you may have multiple devices and the host for the device would be running in another side or the device you work on, usually the ip address while working locally won't be changed but who knows. So a simple script to find ip rather than the big spaghetti output of

  ifconfig en0

Installation

Manual

  git clone {this-repo}

Give the permission to the script

  chmod +x whichIp

Move the script to /usr/local/bin for global access

 mv whichIp  /usr/local/bin

or

This does all the things above

sudo curl https://raw.githubusercontent.com/karkipy/whichIp/master/whichIp -o /usr/local/bin/whichIp && sudo chmod +x /usr/local/bin/whichIp

Restart the terminal

Output

screen shot 2019-01-10 at 12 07 47 pm

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages