Can't connect to open secure port on Ubuntu

Solution 1:

Finally I fixed that by running following command: sudo ufw route allow proto tcp from any to any port 8443