<p>I don't know why, but my local IP changed from <code>192.168.1.100</code> to <code>192.168.1.125</code></p>

<p>So, when I start minikube, it starts well, but none of <code>kubectl</code> command works, it gives me:</p>

<pre><code>Unable to connect to the server: dial tcp 192.168.1.100:8443: connect: no route to host
</code></pre>

<p>Where am I supposed to change the IP in my local computer ( ubuntu 19.04 ) ?</p>

<p><code>minikube update-context</code> should fix this issue for you.</p>

<p>Quoting the docs:</p>

<blockquote>
  <p>The update-context command retrieves the IP address of the running cluster, checks it with IP in kubeconfig, and corrects kubeconfig if incorrect</p>
</blockquote>

<p><a href="https://minikube.sigs.k8s.io/docs/reference/commands/update-context/" rel="nofollow noreferrer">https://minikube.sigs.k8s.io/docs/reference/commands/update-context/</a></p>
