Sounds good.
Hmm next you probably should confirm ports 80 and 443 are actually reachable from the internet.
Use an online port checker like https://canyouseeme.org/
After that you should check your apache config like somebody else already suggested. I haven’t used apache in a while but if I remember correctly:
Ensure it says: Listen 80 NOT: Listen 127.0.0.1:80
(and same with 443)
Also check your VirtualHost — it should look something like:
<VirtualHost *:80>
ServerName yourdomain.com
DocumentRoot /var/www/wordpress
# ... other settings
</VirtualHost>
(and same with 443)











The problem could be anywhere in between the internet and your server.
Ofc. it could be your routet. But I think the following is more likely:
It might also be your internet service provider that doesn’t allow those ports for inbound connections.
Or you’re behind a CGNAT so your real external ip is different from the one you think it is. (look up online how to test this)