How can I get application port?

0
Is there any way to get host port number from java action?
asked
1 answers
1

See this replace getRemoteAddr() by getLocalPort(). Be aware that server port number (often 8080) differs from the webserver port (80).

answered