| 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
|
 |
 |
|
|
subject: Servlet returning remote address in IPv6 not IPv4
|
|
|