The user is attempting to install Discourse on their Ubuntu machine and is facing issues with domain accessibility. The initial error indicates that the domain discoursedemo.tk does not resolve to the server’s IP address. The user is using CloudFlare for DNS and FreeNom for the domain, but the domain isn’t resolving correctly. pfaffman points out that the issue is likely due to a missing A record in the DNS settings, and downey confirms that an A record is needed to map the domain to the server’s public IP. The user updates the DNS with an A record, but the problem persists. downey notes that while the domain resolves, the ports 80 and 443 are not accessible, likely due to a firewall or the web server not listening on those ports. The user is also concerned about CloudFlare’s free plan limitations, which block ports 80 and 443. merefield emphasizes the need to expose ports 80 and 443 for external access. The user is stuck at the domain check step and is seeking help to resolve the configuration issues.
So I am trying to install DC (we’ll call it that) on my Ubuntu machine but when I enter my website domain it says…
WARNING: Port 443 of computer does not appear to be accessible using hostname: discoursedemo.tk.
WARNING: Connection to http://discoursedemo.tk (port 80) also fails.
This suggests that discoursedemo.tk resolves to some IP address that does not reach this
machine where you are installing discourse.
The first thing to do is confirm that discoursedemo.tk resolves to the IP address of this server.
You usually do this at the same place you purchased the domain.
I use CloudFlare for the DNS stuff and FreeNom for the domain. Here is a screenshot of what I have in my DNS list:
The problem is just as described. If this is your home computer then it’s likely a firewall problem. You need to make sure that incoming connections to ports 80 and 443 get to your computer.
In the image you posted, you created a CNAME for discoursedemo.tk. You need to create an A record that is the public IP of wherever your machine is. I’d recommend that you use some subdomain, if only a www.
FWIW, www.discoursedemo.tk is now resolving to the IP address in question from my DNS provider. I am also able to ping that host successfully, so the Internet can see it.
I am not able to reach it on port 443 or port 80, which could either mean that no web server on your host is yet listening on those ports, or that a firewall is blocking the connection.
Unfortunately I don’t know anything about CloudFlare or their services and what may be limited by what plans. You might want to try their own support sites or forums to get help in configuring it.
I also have never installed Discourse on a non-standard port so can’t help you with that; there may be other people who have done so, but generally most web sites are run on ports 80 (http) or 443 (https).
Yeah it doesn’t matter what port it runs on internally but you’d surely need it to be exposed on 80 and preferably 443 to the outside world for browsers to be able to communicate with it.