Host access

How to access host resources from a pod

This has only been tested on VirtualBox and Hyperkit. Instructions may differ for other VM drivers.


The service running on your host must either be bound to all IP’s ( and interfaces, or to the IP and interface your VM is bridged against. If the service is bound only to localhost (, this will not work.

Getting the bridge IP

To access a resource, such as a MySQL service running on your host, from inside of a pod, the key information you need is the correct target IP to use.

minikube ssh "route -n | grep ^ | awk '{ print \$2 }'"

Example output:

This is the IP your pods can connect to in order to access services running on the host.

Validating connectivity

minikube ssh
telnet <ip> <port>

If you press enter, you may see an interesting string or error message pop up. This means that the connection is working.

Last modified April 4, 2020: Change directory case (4593ac355)