Java ã® HttpServletRequest#getRemoteAddr() ã§ããªã¢ã¼ãã® IP ã¢ãã¬ã¹ãåå¾ã§ããã®ã§ãããã¯ã©ã¤ã¢ã³ãã® OS ç°å¢ã«ãã£ã¦ã¯ IPv6 ã®ã¢ãã¬ã¹ãè¿ããã¾ãã ã«ã¼ãããã¯ã¢ãã¬ã¹ãä¾ã«ããã¨ä¸è¨ã®ãããªéãã§ãã [IPv4] 127.0.0.1 [IPv6] 0:0:0:0:0:0:0:1 Tomcat ç°å¢ã§ã¯ IPv6 ã®ã¢ãã¬ã¹ãåªå çã«è¿ãã®ã§ã ããã IPv4 ã®ã¢ãã¬ã¹ãåªå ã«ããã«ã¯ Java èµ·åæã® ãªãã·ã§ã³ã«ä¸è¨ã追å ãã¾ãã -Djava.net.preferIPv4Stack=true Linux ã 㨠catalina.shãWindows ã 㨠catalina.bat ã« è¨è¿°ãã¦ããã¨ããã®ã§ããããã [ããã¥ã¡ã³ã] â»JDK1.5 http://java.sun.c
{{#tags}}- {{label}}
{{/tags}}