Can not connect via tcp in Oracle Cloud environment

In Oracle Cloud we are having connection problems between client and server via TCP. The server application is initialized, so when the client tries to connect to a remote data module (servername) we receive the message “no connection available”. The server only works again after restarting the server application. We believe that the server is not able to allocate the tcp port to the application.
Could you help us?

if your client and server were launched in the same local network and you can use Bonjour I can recommend to use ZeroConf feature. see the Bonjour Discovery sample for more details.

if you can’t use above advice, you can set 0 as port for your service and after server is started, see actual port number (i.e. Server.Port) and publish it somehow to your clients.