Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Servlet returning remote address in IPv6 not IPv4

 
Michal Glowacki
Ranch Hand
Posts: 114
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 22
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic