diff --git a/pkg/minikube/cluster/ip.go b/pkg/minikube/cluster/ip.go index 4737ff3f57..a9a9102c4e 100644 --- a/pkg/minikube/cluster/ip.go +++ b/pkg/minikube/cluster/ip.go @@ -126,7 +126,9 @@ func HostIP(host *host.Host, clusterName string) (net.IP, error) { return net.ParseIP(ip), nil case driver.HyperKit: - return net.ParseIP("192.168.64.1"), nil + vmIPString, _ := host.Driver.GetIP() + gatewayIPString := vmIPString[:strings.LastIndex(vmIPString, ".")+1] + "1" + return net.ParseIP(gatewayIPString), nil case driver.VMware: vmIPString, err := host.Driver.GetIP() if err != nil {