Watson lite web server connection refused
I am using a docker container with two applications inside. The first application is a web api on .net 7, which launches the second application (using Process Start()
method). The second application is Watson lite web server (console application). Watson lite web server listens on 127.0.0.1:9000
. After launching the Watson lite web server, the web api .net 7 application sends a post request to http://127.0.0.1/calculate/
– Watson lite web server performs calculations and returns a response. If you test such a configuration on Windows 11, everything works fine, but if you create and run a docker container, the .net 7 web api successfully launches the Watson lite web server, but when the .net 7 web api application tries to send a request to http://127.0.0.1/calculate/
error is returned: Connection refused (127.0.0.1:9000).
What could be the mistake?