Welcome! Did you use Discourse official Standard Installation. If not, we can’t help, as there is little way to guess what might be wrong.
You need both ports 80 and 443 open to the world. If you’re using cloudflare you should make it dns only.
As mentioned, you can’t use a bare ip number. Misconfigured dns is a common issue. It often helps if your can share your hostname.