ERR_CONNECTION_REFUSED error when trying to connect between Rasa Server and another Server

Dear Rasa Experts,

We are getting the [ERR_CONNECTION_REFUSED] error when trying to connect our rasa http url to another server where we had done UI integration to .Net code.

What can the issue or are we missing to enable any ports or due to socker.io enabled in rasa? we are able to see the rasa response when we give http://localhost:5005.

IS it because we are keeping it as localhost? so do we need to convert/replace localhost to any IP address? Please advice. Many Thanks in Advance.

Hi @mdprasad, You are using http://localhost:5005. This will require that the other machine should be in the same environment. It should not be hosted anywhere else. Otherwise You’ll have to use the IP of your machine on which rasa is hosted and add it in your UI.

Also if you are interacting with the model, The endpoint should direct to the REST endpoint of rasa which is http://localhost:5005/webhooks/rest/webhook.

according to my knowledge confirm that the server is listening on the correct port. If you are trying to connect to a specific port, ensure that the server is configured to accept connections on that port or double-check the endpoint URL or IP address you are using to connect to the server. Ensure that there are no typos or mistakes in the URL.