diff --git a/plugins/guests/windows/cap/choose_addressable_ip_addr.rb b/plugins/guests/windows/cap/choose_addressable_ip_addr.rb index 0403fc86c..2304246ce 100644 --- a/plugins/guests/windows/cap/choose_addressable_ip_addr.rb +++ b/plugins/guests/windows/cap/choose_addressable_ip_addr.rb @@ -5,7 +5,10 @@ module VagrantPlugins def self.choose_addressable_ip_addr(machine, possible) machine.communicate.tap do |comm| possible.each do |ip| - return ip + command = "ping -n 1 -w 1 #{ip}" + if comm.test(command) + return ip + end end end