title: On a Mac, what IP will represent my laptop from within a minikube cluster?
body: <p>I am running minikube on my Mac laptop.  I am using VirtualBox to host the minikube virtual machine, following the <a href="https://github.com/kubernetes/minikube#quickstart" rel="nofollow noreferrer">official instructions</a>.</p>
  
  <p>I would like a pod that I am going to deploy into the cluster to be able to ping a server I will be running on my laptop.  Assuming (for now) that I am not defining a Kubernetes Service of type ExternalName to represent that server, what IP or hostname should I use from within the program running in my pod?</p>
  
  <p><strong>EDIT</strong>: From my pod I can <code>ping 10.0.2.2</code> and get answers back.  However, trying to <code>telnet</code> to <code>10.0.2.2</code> on port <code>9092</code>, where I happen to have an H2 database running, just hangs.</p>
  
  <p>Finally, <code>minikube ssh</code>, which apparently logs me into the VirtualBox VM, maybe? running as <code>docker</code>? results in all the same behaviors above, in case this matters, which suggests this is fundamentally a question, I suppose, about VirtualBox.</p>
  
  <p><strong>EDIT #2</strong>: A restart of VirtualBox solved the connection issue (!).  Nevertheless, <code>10.0.2.2</code> still seems like magic to me; I'd like to know where that IP comes from.</p>