2 Replies Latest reply on Jul 19, 2018 1:18 AM by ns.shenoy

    Application Not Accessible Via. IPv6 in wildfly 9.0.2

    ns.shenoy

      I have deployed two applications in wildfly 9.0.2 and everything working fine. My fellow developer asked me to enable IPv6.

       

      I have modified standalone.conf.bat to enable IPv6 as follows,

      -rem # set "JAVA_OPTS=%JAVA_OPTS% -Djava.net.preferIPv4Stack=true"

      +set "JAVA_OPTS=%JAVA_OPTS% -Djava.net.preferIPv4Stack=false -Djava.net.preferIPv6Stack=true"

       

      Later i modified standalone.xml interface tag as follows [ Added an interface any ]

      ---------------------------------------------------------

      <interfaces>

              <interface name="management">

                  <any-address/>

              </interface>

              <interface name="public">

                  <any-address/>

              </interface>

              <interface name="unsecure">

                  <any-address/>

              </interface>

      <interface name="any">

                  <any-address/>

              </interface>

      </interfaces>

       

      ---------------------------------------------------

      Later modified socket binding group as

       

      <socket-binding-group name="standard-sockets" default-interface="any" port-offset="${jboss.socket.binding.port-offset:0}">

       

      Now test run

      ..Started wildfly..

      I can see the message in server log as

      INFO  [org.wildfly.extension.undertow] (MSC service thread 1-7) WFLYUT0006: Undertow HTTP listener default listening on /0:0:0:0:0:0:0:0:8080

       

      Am able to browse context page http://[IPv6]:8080, management console http://[IPv6]:9990 but not application on http://[IPv6]:8080/Appname

       

      In chrome am getting an error "ERR_INVALID_REDIRECT"

       

      Application is perfectly working in IPv4.. Please help.@

        • 1. Re: Application Not Accessible Via. IPv6 in wildfly 9.0.2
          jewellgm

          This is just a guess, but does your application require "confidential" security constraints?  "Invalid Redirect" could mean that when your browser accesses port 8080, that it's being redirected to the https port (8443).  If so, it could be that you don't have the hostname mapped to the IPv6 address in either your DNS or your hosts file.

          • 2. Re: Application Not Accessible Via. IPv6 in wildfly 9.0.2
            ns.shenoy

            The Issue is identified. Developer was redirecting the user to login page while trying to access the application for the first time. The URL returned by the application in IPv6 forms a URL like http://::1/ [Please note that square braces are not included]. The URL convention is thus not followed in the case of IPv6 where IPv4 it just work like a charm.