Results 1 to 2 of 2
- 02-09-2009, 11:20 PM #1
Problem of getting erroneous IP address
I am facing the Problem of getting erroneous IP address 127.0.0.1 instead of my own IP address by using the following code:-
if it comes with the IP add of localhost, then in that case need to know y it happens.........public void doFilter(ServletRequest request, ServletResponse response,
FilterChain chain) throws IOException,
{
String ip = request.getRemoteAddr();
/.....
}
can nyone tell me...........:o
- 02-09-2009, 11:25 PM #2
For servers with more than one IP address, this attribute
specifies which address will be used for listening on the specified
port. By default, this port will be used on all IP addresses
associated with the server. A value of <code>127.0.0.1</code>
indicates that the Connector will only listen on the loopback
interface.
Similar Threads
-
Client IP Address
By goodjonx in forum NetworkingReplies: 3Last Post: 09-23-2009, 10:27 AM -
Address bar not visible
By Akashchopra521 in forum New To JavaReplies: 0Last Post: 12-03-2008, 07:13 AM -
Looking Up the Address of a Host
By Java Tip in forum java.netReplies: 0Last Post: 04-07-2008, 08:11 PM -
JSP – getting IP address
By Java Tip in forum Java TipReplies: 0Last Post: 01-29-2008, 09:05 AM -
I am not able to print Address
By Albert in forum New To JavaReplies: 1Last Post: 07-13-2007, 03:37 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks