We are trying to deploy Portal for ArcGIS on Amazon EC2 using the ArcGIS Enterprise 10.6.1 AMI on Ubuntu following the ESRI documentation. The installation of the AMI is correct, ports 7080 and 7443 have been opened and Portal is running correctly without any apparent error. So far so good, the software is all installed and licensed. The problem arises when accessing the Portal for the first time:
After trying to connect the browser it ends up throwing an error:
The connection has expired
The server 172.31.68.112 is taking too long to respond.
As you can see it is trying to connect to the private ip, not the public, but I do not know why this is.
On the other hand I can access the Portal Administrator Directory without problems:
Any idea would be greatly appreciated.