Question

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?

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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