Skip to content

Instantly share code, notes, and snippets.

@vtsatskin
Created June 13, 2017 21:12
Show Gist options
  • Save vtsatskin/d78d0f58f3cf440dc6c207b992f51e4f to your computer and use it in GitHub Desktop.
Save vtsatskin/d78d0f58f3cf440dc6c207b992f51e4f to your computer and use it in GitHub Desktop.
Add loopback to Network pane in System Preferences on macOS
sudo networksetup -createnetworkservice Loopback lo0
sudo networksetup -setmanual Loopback 172.20.42.42 255.255.255.255
@vtsatskin
Copy link
Author

Allows for Internet Sharing without an active internet connection. From http://www.laszlopusztai.net/2016/02/14/creating-a-wi-fi-access-point-on-os-x/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment