Skip to content

Instantly share code, notes, and snippets.

@joemar-tagpuno
Last active April 10, 2023 19:48
Show Gist options
  • Save joemar-tagpuno/3244693b6c91fe9d03d9eece9a27a585 to your computer and use it in GitHub Desktop.
Save joemar-tagpuno/3244693b6c91fe9d03d9eece9a27a585 to your computer and use it in GitHub Desktop.
IP aliasing on Mac OS for react-native development
# @link https://osxdaily.com/2009/08/05/how-to-create-an-ip-alias-in-mac-os-x-using-ifconfig/
# In react-native development I create IP alias for the ios and android emulators.
# sudo ifconfig en0 alias 192.168.0.101 255.255.255.0
# automate the script with [launchd](https://developer.apple.com/library/archive/documentation/MacOSX/Conceptual/BPSystemStartup/Chapters/CreatingLaunchdJobs.html)
# https://www.macstadium.com/blog/automating-login-and-startup-events-in-macos
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment