<p>I am testing something out on my local minikube cluster on a Windows10 machine. I deployed my test deployment on my local minikube cluster and added a service to it to access over NodePort, but I cannot access it.</p>
<pre><code>PS C:\Users\Admin&gt; kubectl get all -n web -o wide
NAME                                          READY   STATUS    RESTARTS   AGE    IP           NODE       NOMINATED NODE   READINESS GATES
pod/nginx-webserver-deploy-79b6588b5f-mllnf   1/1     Running   0          134m   172.17.0.5   minikube   &lt;none&gt;           &lt;none&gt;
pod/nginx-webserver-deploy-79b6588b5f-rvtxt   1/1     Running   0          134m   172.17.0.7   minikube   &lt;none&gt;           &lt;none&gt;
pod/nginx-webserver-deploy-79b6588b5f-xqzwz   1/1     Running   0          134m   172.17.0.6   minikube   &lt;none&gt;           &lt;none&gt;

NAME                              TYPE       CLUSTER-IP      EXTERNAL-IP   PORT(S)        AGE    SELECTOR
service/nginx-webserver-service   NodePort   10.96.115.194   &lt;none&gt;        80:30008/TCP   132m   app=nginx-webserver,tier=frontend

NAME                                     READY   UP-TO-DATE   AVAILABLE   AGE    CONTAINERS        IMAGES         SELECTOR
deployment.apps/nginx-webserver-deploy   3/3     3            3           134m   nginx-webserver   nginx:1.20.2   app=nginx-webserver,tier=frontend

NAME                                                DESIRED   CURRENT   READY   AGE    CONTAINERS        IMAGES         SELECTOR
replicaset.apps/nginx-webserver-deploy-79b6588b5f   3         3         3       134m   nginx-webserver   nginx:1.20.2   app=nginx-webserver,pod-template-hash=79b6588b5f,tier=
frontend


PS C:\Users\Admin&gt; kubectl describe svc nginx-webserver-service -n web
Name:                     nginx-webserver-service
Namespace:                web
Labels:                   &lt;none&gt;
Annotations:              &lt;none&gt;
Selector:                 app=nginx-webserver,tier=frontend
Type:                     NodePort
IP Family Policy:         SingleStack
IP Families:              IPv4
IP:                       10.96.115.194
IPs:                      10.96.115.194
Port:                     http  80/TCP
TargetPort:               80/TCP
NodePort:                 http  30008/TCP
Endpoints:                172.17.0.5:80,172.17.0.6:80,172.17.0.7:80
Session Affinity:         None
External Traffic Policy:  Cluster
Events:                   &lt;none&gt;
</code></pre>
<p>But I am not able to connect using nodeport method:</p>
<pre><code>PS C:\Users\Admin&gt; curl 10.96.115.194:30008
curl : Unable to connect to the remote server
At line:1 char:1
+ curl 10.96.115.194:30008
+ ~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
    + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
</code></pre>
<p>I tried disabling the Windows firewall fully but no luck.</p>
<p>I must be missing something core but could not figure out yet.</p>

<p>I found the solution.</p>
<p>Unlike on Linux, accessing NodePort using the specified port on the service definition yaml file is not a straightforward thing on Windows10.</p>
<p>On Windows10, it has to be done as follows:</p>
<pre><code>PS C:\Users\Admin&gt; minikube service nginx-webserver-service -n web
|-----------|-------------------------|-------------|---------------------------|
| NAMESPACE |          NAME           | TARGET PORT |            URL            |
|-----------|-------------------------|-------------|---------------------------|
| web       | nginx-webserver-service | http/80     | http://192.168.49.2:30008 |
|-----------|-------------------------|-------------|---------------------------|
* Starting tunnel for service nginx-webserver-service.
|-----------|-------------------------|-------------|------------------------|
| NAMESPACE |          NAME           | TARGET PORT |          URL           |
|-----------|-------------------------|-------------|------------------------|
| web       | nginx-webserver-service |             | http://127.0.0.1:61410 |
|-----------|-------------------------|-------------|------------------------|
* Opening service web/nginx-webserver-service in default browser...
! Because you are using a Docker driver on windows, the terminal needs to be open to run it.
* Stopping tunnel for service nginx-webserver-service.
</code></pre>
<p>This will open the exposed service on your default web-browser automatically.</p>
<p>Otherwise, you can have it just generated the URL instead of opening automatically.</p>
<pre><code>PS C:\Users\Admin&gt; minikube service nginx-webserver-service -n web --url
* Restarting the docker service may improve performance.
* Starting tunnel for service nginx-webserver-service.
|-----------|-------------------------|-------------|------------------------|
| NAMESPACE |          NAME           | TARGET PORT |          URL           |
|-----------|-------------------------|-------------|------------------------|
| web       | nginx-webserver-service |             | http://127.0.0.1:52665 |
|-----------|-------------------------|-------------|------------------------|
http://127.0.0.1:52665
! Because you are using a Docker driver on windows, the terminal needs to be open to run it.
* Stopping tunnel for service nginx-webserver-service.
</code></pre>
