Have you checked that Flask has opened the socket? If you have another SSH session open you could check with the command:
netstat -na | grep :<port>
If you find it, check iptables with following command:
iptables -L -v -n
Do this command as root or with sudo.