# Cloudflare Tunnels - Discourse Setup Not Recognizing Hostname (Port not accessible)

**URL:** <https://meta.discourse.org/t/cloudflare-tunnels-discourse-setup-not-recognizing-hostname-port-not-accessible/328520>\
**Category:** Self-hosting\
**Created:** [September 28, 2024, 9:19pm UTC](https://meta.discourse.org/t/cloudflare-tunnels-discourse-setup-not-recognizing-hostname-port-not-accessible/328520 "2024-09-28T21:19:53Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![joshhabka](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/joshhabka/32/452328_2.png) [@joshhabka](https://meta.discourse.org/u/joshhabka)\
**Post date:** [September 28, 2024, 9:19pm UTC](https://meta.discourse.org/t/cloudflare-tunnels-discourse-setup-not-recognizing-hostname-port-not-accessible/328520/1 "2024-09-28T21:19:54Z")

</div>

I have the cloudflared daemon running properly and have used it for tons of stuff(meaning the tunnel is installed properly on the server), but I am having trouble getting the Discourse setup(./discourse-setup) to recognize my hostname for my Discourse instance.

- I am using **biohacking.forum** as the hostname for my instance.
- This my my Cloudflare Tunnel configuration for biohacking.forum:  
 ![discourse-setup-failure-cloudflared-conifg](https://global.discourse-cdn.com/meta/original/4X/b/2/f/b2f901da97e675989ccbee4ce08111f1fc503a0d.png)
- I have also tried setting it to HTTPS for the service type
- I am setting up Discourse on an Ubuntu server, on LTS.
- I ran the following commands in this order:

1. sudo mkdir /var/discourse
2. sudo git clone [GitHub - discourse/discourse\_docker: A Docker image for Discourse · GitHub](https://github.com/discourse/discourse_docker.git) /var/discourse
3. cd /var/discourse
4. sudo ./discourse-setup
5. It prompts me for the hostname, I enter **biohacking.forum**
6. The following message is displayed:

```plaintext
Hostname for your Discourse? [discourse.example.com]: biohacking.forum

Checking your domain name . . .
WARNING: Port 443 of computer does not appear to be accessible using hostname: biohacking.forum.
WARNING: Connection to http://biohacking.forum (port 80) also fails.

This suggests that biohacking.forum resolves to some IP address that does not reach this 
machine where you are installing discourse.

The first thing to do is confirm that biohacking.forum resolves to the IP address of this server.
You usually do this at the same place you purchased the domain.

If you are sure that the IP address resolves correctly, it could be a firewall issue.
A web search for "open ports YOUR CLOUD SERVICE" might help.

This tool is designed only for the most standard installations. If you cannot resolve
the issue above, you will need to edit containers/app.yml yourself and then type

./launcher rebuild app

```

**What should I do to get this step working, please let me know if you need any addtl. information. Thank you!**

---

_[View the full topic](https://meta.discourse.org/t/cloudflare-tunnels-discourse-setup-not-recognizing-hostname-port-not-accessible/328520)._
