Friday, 15 April 2011

Get Application Server name or ip and port in Java -


We want to identify and display the server and port that is running behind a Java application proxy web server That returns the getServerName () and getServerPort () proxy and the server name of its port (80).

We have two application server examples that run on a physical box and therefore there are two active ports, ie the box is 9080, 9 081. Let me & lt; Application Server Name & gt ;: & lt; Application Server Port & gt; to display.

Any thoughts? I'm the whole Java Nob, sorry that this is a basic question.

You

  • returns the local IP.
  • Returns the local port.
  • Returns the local port.
  • Returns the local port.

  • No comments:

    Post a Comment