Skip to content

Commit

Permalink
Merge pull request #44 from mkevenaar/feature/GH-34
Browse files Browse the repository at this point in the history
(GH-34) Change winrm port
  • Loading branch information
ferventcoder authored Jun 2, 2020
2 parents 3e20698 + 8c89393 commit a26d877
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ Vagrant.configure("2") do |config|
# username/password for accessing the image
config.winrm.username = "vagrant"
config.winrm.password = "vagrant"
config.winrm.port = 55985
# explicitly tell Vagrant the guest is Windows
config.vm.guest = :windows

Expand All @@ -95,7 +96,7 @@ Vagrant.configure("2") do |config|
# Port forward WinRM / RDP
# Vagrant 1.9.3 - if you run into Errno::EADDRNOTAVAIL (https://github.com/mitchellh/vagrant/issues/8395),
# add host_ip: "127.0.0.1" for it to work
config.vm.network :forwarded_port, guest: 5985, host: 5985, id: "winrm", auto_correct: true #, host_ip: "127.0.0.1"
config.vm.network :forwarded_port, guest: 5985, host: 55985, id: "winrm", auto_correct: true #, host_ip: "127.0.0.1"
config.vm.network :forwarded_port, guest: 3389, host: 3389, id: "rdp", auto_correct: true #, host_ip: "127.0.0.1"
# Port forward SSH (ssh is forwarded by default in most versions of Vagrant,
# but be sure). This is not necessary if you are not using SSH, but it doesn't
Expand Down

0 comments on commit a26d877

Please sign in to comment.