Sounds like you’re doing the right stuff. You’re sure that your DNS resolves to your server IP and only there?
Oh. I can’t tell at quick glance whether discourse-setup look only at IPv4.
You might try running ./discourse-setup --skip-connection-test to skip the test.