• Post Reply Bookmark Topic Watch Topic
  • New Topic

JBoss, Servlet and request.getRemoteHost()

 
Olexiy Prokhorenko
Ranch Hand
Posts: 97
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!