This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JBoss, Servlet and request.getRemoteHost()  RSS feed

 
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!