<p>I created kubernetes cluster using rancher with 2 physical computers (Windows). </p>

<ul>
<li>master : <code>172.20.5.246</code></li>
<li>node : <code>172.20.5.227</code></li>
</ul>

<p>Once service is deployed via rancher server and when it also mapped to 81 of host as per below</p>

<p><a href="https://i.stack.imgur.com/xa1FE.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xa1FE.png" alt="enter image description here"></a></p>

<p>I cannot access app via <code>172.20.5.227:81</code> ? Even I expose port via node's firewall</p>

Shalitha Suranga
<p>Assumption: your service work internally meaning works if you check the service in the Master or in the Nodes and you got access to the service:</p>

<p>You need to change the service type to NodePort.
By doing so you will will expose the service external.</p>

<ol>
<li>kubectl -n  edit service </li>
<li>Edit the file and change the type to NodePort (as the example:<a href="https://i.stack.imgur.com/FtHor.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FtHor.png" alt="enter image description here"></a></li>
</ol>

<p><a href="https://i.stack.imgur.com/lqf3I.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lqf3I.png" alt="enter image description here"></a></p>

<p> 
And than Browser to <a href="https://NODEIP:NODEPORT" rel="nofollow noreferrer">https://NODEIP:NODEPORT</a> .</p>
