Liferay DXP supports both the IPv4 and IPv6 address formats. By default, Liferay DXP uses IPv4 addresses. If you’re on an IPv6 network, you’ll need to change the configuration. If you’d like more information on the basics of these protocols, you can check out the reason for using IPv6 addresses, and its technical details.
To configure your portal to validate IPv6 addresses, you must complete a few simple steps:
- Assuming you’re using the Tomcat app server for your portal, edit the
setenv.sh
orsetenv.bat
file in the${TOMCAT_HOME}/bin
folder and set-Djava.net.preferIPv4Stack=false
inCATALINA_OPTS
. - Create a
portal-ext.properties
file in your portal’s Liferay Home folder (if one does not already exist) and set thetunnel.servlet.hosts.allowed
property to the target hosts you want to allow (e.g., 0:0:0:0:0:0:0:1).