Skip to content

Commit

Permalink
(chocolatey-communityGH-34) Change winrm port.
Browse files Browse the repository at this point in the history
Changing the port prevents collisions on system that have
WinRM configured. This makes it even easier for everybody
to use the test-environment
  • Loading branch information
mkevenaar committed Oct 1, 2019
1 parent 8b9266f commit 8c89393
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 8c89393

Please sign in to comment.