We would like to identify and display the server and port on which the Java application that is located behind the proxy server is running. This means that getServerName () and getServerPort () return the name of the proxy server and its port (80).
We have two instances of the application server running on the same physical field, and therefore they have two active ports in the field, that is, 9080, 9081. What I would like to have is displayed <Application Server Name>:<Application Server Port> .
Any ideas? I am a full Java noob, sorry if this is the main question.
java web-applications websphere
user222198
source share