aspose file tools
The moose likes Sockets and Internet Protocols and the fly likes Servlet returning remote address in IPv6 not IPv4 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "Servlet returning remote address in IPv6 not IPv4" Watch "Servlet returning remote address in IPv6 not IPv4" New topic
Author

Servlet returning remote address in IPv6 not IPv4

Michal Glowacki
Ranch Hand

Joined: Mar 14, 2006
Posts: 113
I can't find any help with these, also in history of this site. When I run my server Tomcat 6 on Windows 7/2008 my java code retrieves IPs in version 6, not 4. Is there any setting to disable this? I have turned off IPv6 protocol in network connections, I have disabled it in registry but still getRemoteAddr() returns IP6. Does anyone have similar problem?
Mac Luq
Greenhorn

Joined: Oct 02, 2009
Posts: 21

It seems that it's not related to your java server code

Look: http://stackoverflow.com/questions/3118829/why-request-getremoteaddr-returns-ipv4-or-ipv6-depending-on-context-post-query


SCJP 6 | OCPJWCD6
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Servlet returning remote address in IPv6 not IPv4
 
Similar Threads
configuring tomcat to support ipv6?
MYSQL on IPV6
RMI client server don't work on ipv6 machines
Building a firewall from scratch
Tomcat and ipv6