<p>I have the following:</p>
<ol>
<li>Windows 10 OS -- Host Machine</li>
<li>Oracle VirtualBox -- Guest Machine</li>
<li>A linux Server (ubuntu)</li>
<li>Minikube on Ubuntu for Kubernetes</li>
</ol>
<p>I have written a simple nodejs app which should run on port 8087 inside a virtual box. The nodeapp is exposed via kubernetes service and then I have used &quot;kubectl port-forward&quot; to forward the request to kubernetes nodejs pod.</p>
<p>Now, if I do a curl localhost:9000 from my guest machine(ubuntu), I get a response back from the nodejs app. however when I try to do a curl from my host machine (windows) I do not get any response. I have used NAT connection and port forwarded from my host machine to guest machine on port 9000. Can anyone please help me why I am unable to access the 9000 port on my hst machnine?</p>

Geebee
<p>ok, found the reason, I had to port forward kubectl with address:</p>
<pre><code>kubectl port-forward  --address 0.0.0.0   hello-node-7797cfb8cb-7nkfk 9090:8087
</code></pre>
<p>and now I can access my nodejs app</p>
<p><a href="https://i.stack.imgur.com/2BWSm.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/2BWSm.png" alt="enter image description here" /></a></p>
