<p>I have setup a kubernetes cluster with kubeadm with a 3 node vagrant setup. I have installed ArgoCD and when I use vagrant ssh into the kubemaster vm, I can run:</p>
<pre><code>kubectl port-forward svc/argocd-server -n argocd 8080:443
</code></pre>
<p>And I can curl it in the ssh session successfully with:</p>
<pre><code>curl -k https://localhost:8080
</code></pre>
<p>I have a static ip for the nodes with the master being 192.168.56.2, and a port forward set for that vm</p>
<pre><code>config.vm.define &quot;kubemaster&quot; do |node|
    ...
    node.vm.network :private_network, ip: 192.168.56.2
    node.vm.network &quot;forwarded_port&quot;, guest: 8080, host: 8080
    ...
end
</code></pre>
<p>On the host I try to access ArgoCD UI in browser with:</p>
<pre><code>https://localhost:8080
https://192.168.56.2:8080
</code></pre>
<p>And I get connection refused</p>
<p>What am I missing?</p>
<p><strong>Edit:</strong></p>
<p>The nodes are running ubuntu 22 and ufw is not enabled.
Im running on a Mac</p>

Dreamystify
<p>It turns out I needed to add the address flag to the port forwarding command</p>
<pre><code>// from
kubectl port-forward svc/argocd-server -n argocd 8080:443

// to
kubectl port-forward --address 0.0.0.0 svc/argocd-server -n argocd 8080:443
</code></pre>
