the port forward may be binding to 127.0.0.1 and not to 0.0.0.0 (any ip) so may not be available using the host ip.
if public_network works, then you can use that. alvaro On Tue, Mar 27, 2018 at 7:40 PM, Frankie Liu <[email protected]> wrote: > Hello Alvaro, > > Using public_network did work, although I had to add some more > configuration to get a DHCP assigned. > > config.vm.network "public_network", :bridge => 'eth0', > :use_dhcp_assigned_default_route => true > > For the forwarded_ports option > > config.vm.network "forwarded_port", guest: 3389, host: 3389, id: "rdp", > auto_correct: true > > This did not work, my understanding from reading the docs, is that I > should be able to connect to the guest via the host's forwarded port, i.e. > > xfreerdp /u:vagrant /v:<host_ip>:3389 > > seems like it should have worked but it does not. Am i doing something > wrong here? > > In virtualbox if I set the following port forward: > Settings/Network/Adapter 1 , set to NAT, and Advanced/Forwarding: > > Name: rdp > Protocol: TCP > Host IP: <host_ip> > Host Port: 3389 > Guest IP: 10.0.2.15 > Guest Port: 3389 > > This works and allows me to connect to the VM from another machine by > simply > xfreerdp /u:vmuser /v:<host_ip>:3389 > > So I don't quite understand why this is not working by setting VagrantFile > with forwarded_port configuration. > > Thanks again, > > -f > > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/vagrant/issues > IRC: #vagrant on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Vagrant" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/vagrant-up/15d0922c-11d7-47cf-b79d-5d7be24e5caa%40googlegroups.com > <https://groups.google.com/d/msgid/vagrant-up/15d0922c-11d7-47cf-b79d-5d7be24e5caa%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- Alvaro -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/vagrant/issues IRC: #vagrant on Freenode --- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ew8f3dV1w31A_eUE8wVXpKUMvwQcfUTGR%3D8wUdjqO9YKA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
