'Ingress minikube implementation connection refused when trying to connect by local ip

I have been trying to connect to my minikube cluster via local IP address. I get the following error:

> curl 192.168.68.101:3000
curl: (7) Failed to connect to 192.168.68.101 port 3000: Connection refused
> curl 192.168.68.101:80
curl: (7) Failed to connect to 192.168.68.101 port 80: Connection refused

Whereas the following works (3000 is mapped back to port 80 via kubectl port-forward --namespace=ingress-nginx service/ingress-nginx-controller 3000:80):

> curl localhost:3000
200!
> curl localhost:80
200!

Seems like this implementation of nginx controller is bound to work only on localhost? Here's what my ingress is:

NAME                       CLASS   HOSTS          ADDRESS     PORTS     AGE
my-ingress                 nginx   xyz.com       localhost   80, 443    19m

And it's not that the ports are not open, I am run a different service (other than kubernetes) and it works on port 3000.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source