» Connect

Command: vagrant connect NAME

The connect command complements theshare command by enabling access to sharedenvironments. You can learn about all the details of Vagrant Share in theVagrant Share section.

The reference of available command-line flags to this commandis available below.

» Options

  • —disable-static-ip - The connect command will not spin up a smallvirtual machine to create a static IP you can access. When this flag isset, the only way to access the connection is to use the SOCKS proxyaddress outputted.

  • —static-ip IP - Tells connect what static IP address to use for the virtualmachine. By default, Vagrant connect will use an IP address that looksavailable in the 172.16.0.0/16 space.

  • —ssh - Connects via SSH to an environment shared withvagrant share —ssh.