A simple bash script to find ip
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
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
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