My servlet running on JBoss always return 127.0.0.1 when calling request.getRemoteHost() or remoteAddr(). And always localhost when calling getServerName(). However it has static IP, and has real domain name to which I am connection.
How can I get real IP or domain name of server where my servlet is running? Is it because I am missing something in my JBoss configuration?
<a href="http://www.BossTalks.com" target="_blank" rel="nofollow">http://www.BossTalks.com</a><br />Free advices and help for entrepreneurs: from Idea to IPO<br />Software and IT Project Management forum