The ports should be correct. Could you provide any errors or logs that might explain what's going on?
Can you connect yourself or no one able to connect at all? Is there any other services running on the server that's able to get accessed from outside the server?
Have you tried turning off the ufw entirely to see if that changes anything? Is iptables closed besides the open ports? Also did you open UDP or TCP connections?
I disagree. ufw is a fine tool for automation and easier to use for many people not knowing how to setup a standard iptables ruleset and reloading it at boot