Personally I’d look through the relevant parts of the output of dmesg - one possibility being that firewall (UFW) events are blocking traffic.
In fact, some logging of connectivity might be useful, to distinguish the case that the machine itself is unreachable, and the case that discourse is unresponsive.
If you have any kind of CDN arrangement, check that too.