Get vagrant box guest IP from host
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
Written by Ronan Guilloux
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vagrant
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#