diff --git a/builder/virtualbox/common/step_http_server.go b/builder/virtualbox/common/step_http_server.go index 440d9adbc..55874992e 100644 --- a/builder/virtualbox/common/step_http_server.go +++ b/builder/virtualbox/common/step_http_server.go @@ -49,7 +49,7 @@ func (s *StepHTTPServer) Run(state multistep.StateBag) multistep.StepAction { } httpPort = offset + s.HTTPPortMin - httpAddr = fmt.Sprintf(":%d", httpPort) + httpAddr = fmt.Sprintf("0.0.0.0:%d", httpPort) log.Printf("Trying port: %d", httpPort) s.l, err = net.Listen("tcp", httpAddr) if err == nil { diff --git a/builder/vmware/common/step_http_server.go b/builder/vmware/common/step_http_server.go index 440d9adbc..55874992e 100644 --- a/builder/vmware/common/step_http_server.go +++ b/builder/vmware/common/step_http_server.go @@ -49,7 +49,7 @@ func (s *StepHTTPServer) Run(state multistep.StateBag) multistep.StepAction { } httpPort = offset + s.HTTPPortMin - httpAddr = fmt.Sprintf(":%d", httpPort) + httpAddr = fmt.Sprintf("0.0.0.0:%d", httpPort) log.Printf("Trying port: %d", httpPort) s.l, err = net.Listen("tcp", httpAddr) if err == nil {