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?

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.

×
1 answer

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

Submit an Answer