In the Azure Cloud raised Tomcat. In Tomcott, there is a REST service (for system user clients), which has a service that raises a server socket to accept connections from system service clients and respond to requests. Also, the service can connect to these same service clients directly over IP through the same sockets. Service clients - android and pc.
The problem is that when you start the service on the local Tomketa server-socket works fine, and when running in Azure - the desired port is not available. I cannot configure server.xml in Azura, because when I try to change it, Azur gives an access rights error. The current configuration of the connector Tomcat in Azura:
<Connector port="${port.http}" protocol="HTTP/1.1" address="127.0.0.1" connectionTimeout="20000" />
Actually the question is: is it possible to somehow open the required port in Tomcate within Azura?
If not, which option is preferable?
- Web sockets
- Make a connection to the server in REST, and leave the reverse connection through sockets
- something else?