Connection Time out

I have docker running on windows.
I’m using two containers using basically java api applications.
These applications communicate with another cloud server, and until there , everything is fine and working as expected.
The problem is that is some hours of use, when for some reason i restart by container, i start getting connection refused error, and the communication with this specific server, stop to work.
When i reinstall docker, it start working again.
Might someone please help me on it?

Do you really need to reinstall? Restaring is not enough?

Unfortunately not. Just restart the connection is not being restored. Only restarting.