Skip to content

Instantly share code, notes, and snippets.

@ohshhh
Created November 14, 2017 21:08
Show Gist options
  • Save ohshhh/096b7df153c76cdd76ed32e9ed791821 to your computer and use it in GitHub Desktop.
Save ohshhh/096b7df153c76cdd76ed32e9ed791821 to your computer and use it in GitHub Desktop.
Get vagrant box guest IP from host
Get vagrant box guest IP from host
VAGRANT IP
vagrant ssh -c "hostname -I | cut -d' ' -f2" 2>/dev/null
(OS X): copy it to clipboad
vagrant ssh -c "hostname -I | cut -d' ' -f2" 2>/dev/null | pbcopy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment