title: How to access MongoDB outside of vagrant?
body: <p>I have tried to connect to vagrant MongoDB outside of vagrant. However, every time failed.
  I have tried as followings.</p>
  <p>Change <code>/etc/mongodb.conf</code> as
  <code>bind = 0.0.0.0</code>
  <code>port = 27017</code>
  <code>sudo service mongodb restart</code></p>
  <p>MongoDB shell version v3.6.3</p>
  <p>vagrant file like this</p>
  <p>config.vm.network &quot;forwarded_port&quot;, guest: 80, host: 80</p>
  <p>config.vm.network &quot;forwarded_port&quot;, guest: 443, host: 1206</p>
  <p>config.vm.network &quot;forwarded_port&quot;, guest: 5050, host: 5050</p>
  <p>config.vm.network &quot;forwarded_port&quot;, guest: 27017, host: 27017</p>