Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Getting Servlet Request Info
icon5.gif  Getting Servlet Request Info [message #876794] Fri, 25 May 2012 05:36 Go to next message
R P is currently offline R P
Messages: 4
Registered: May 2012
Junior Member
I am using RWT.getRequest().getRemoteHost()in my project to get the remote host name but it always give me a IP6 address or a IP4 address instead of the host computer name. I am using 1.5 m6 and can anyone explain me the reason for this?

[Updated on: Fri, 25 May 2012 05:48]

Report message to a moderator

Re: Getting Servlet Request Info [message #876893 is a reply to message #876794] Fri, 25 May 2012 09:23 Go to previous message
Cole Markham is currently offline Cole Markham
Messages: 133
Registered: July 2009
Senior Member
From the Java documentation[1]:
Quote:
If the engine cannot or chooses not to resolve the hostname (to improve performance), this method returns the dotted-string form of the IP address.


Hope that helps,

Cole

[1]http://docs.oracle.com/javaee/6/api/javax/servlet/ServletRequest.html#getRemoteHost()
Previous Topic:Detect "mouseleave" event
Next Topic:rap - new message protocol
Goto Forum:
  


Current Time: Sun Aug 31 04:25:23 EDT 2014

Powered by FUDForum. Page generated in 0.02539 seconds