hello exactly in the same way you will do with a VM without vagrant.
port fwd localhost 3389 -> 3389 allows you to connect from where that port is valid, ie localhost if you want to connect from the network - check whats the IP the VM got from public_network - check firewall allows incoming connection to port 3389 - profit Thanks Alvaro. On Tue, Mar 27, 2018 at 8:46 AM, Frankie Liu <[email protected]> wrote: > Hello Alvaro, > > I hope it is ok to reply here, I read docs but there is not much > information on how to set it up correctly for rdp. > I tried various combinations of forwarded_ports, public_network > > config.vm.network "forwarded_port", guest: 3389, host: 3389, id: "rdp", > auto_correct: true > config.vm.network "public_network" > > # config.vm.communicator = :winrm > # config.winrm.host = "ip.of.the.host" > # config.winrm.guest_port = "5986" > # config.winrm.port = "55986" > # config.winrm.transport = "ssl" > # config.winrm.ssl_peer_verification = false > > Note that I can connect via 127.0.0.1:33389 which comes from the message > after > vagrant rdp. I can connect from the host machine, but connections from > other devices > in the network have been unsuccessful. Could you let me know how to set > it properly? > I think rdp and firewall seem to work because I can connect via loopback > 127.0.0.1 using > xfreerdp -u vagrant 127.0.0.1:33389. But connection from other network > nodes doesn't > seem to work. > > Thanks, > > -f > > Quoted from your previous post: > If you are familiar with rdp over the network, then you need: > - add a private or public network or add port fwd to 3389 > - ensure rdp is enabled and firewall is open > - ensure the user you want to use is allowed to use rdp > - your rdp client can use the box rdp version > - connect either by public/private IP and port 3389. Or the port redirect > of localhost:3389 > >> -- > 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/66e84ad1-e8ab-4a3a-9fbb-803584046a83%40googlegroups.com > <https://groups.google.com/d/msgid/vagrant-up/66e84ad1-e8ab-4a3a-9fbb-803584046a83%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/CAHqq0ey-Y5rYLZvuav4CuQ-HM8q93a1NK0CR5onAyz464qtwDw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
