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.