Connection issue between frontend and backend application

My backend application is running on port no:8786 in docker , frontend angular app build is deployed in apache server and it would connect to backend api through http://localhost:8786. But it is giving error as connection refused. What to do?


Hi @sayantans643. I am facing the same issue with connection to backend when the frontend is deployed on Apache. Did you find a solve a solution? If yes, could you please share.

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi @sayantans643,

Can you share your Apache configuration files? Usually, you need to use it as proxy and pass it to port 8786.

Having said that, this needs to be configured directly in the virtual configuration file for the domain you are using.

One other thing I can think of on the top of my mind is that you make sure your port is actually opened to the public meaning in your firewall Incoming connections are actually allowed on this port.

Regards, KFSys