# Troubleshooting Port Access

**URL:** https://meta.discourse.org/t/troubleshooting-port-access/161058
**Category:** Self-hosting
**Created:** [August 16, 2020, 5:16pm UTC](https://meta.discourse.org/t/troubleshooting-port-access/161058 "2020-08-16T17:16:12Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![Matt\_Shields](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/matt_shields/32/148848_2.png) [@Matt\_Shields](https://meta.discourse.org/u/Matt_Shields)
#### Post date: [August 16, 2020, 5:16pm UTC](https://meta.discourse.org/t/troubleshooting-port-access/161058/1 "2020-08-16T17:16:12Z")

</div>

I’m attempting to install Discourse on Digital Ocean.. When I type the host name I get this error

Hostname for your Discourse? [`discourse.example.com`]: `discourse.somename.co`

Checking your domain name . . .

WARNING: Port 443 of the computer does not appear to be accessible using hostname: `discourse.somenamer.co.`

WARNING: Connection to `http://discourse.somename.co` (port 80) also fails.

I’m using  
Namecheap  
Cloudflare  
and Digital Ocean

Namecheap nameservers point to Cloudflare, Cloudflare A records point to digital ocean IP address. I’m not sure what the issue is?

When I navigate to the URL on a browser it says the browser is fine, Cloudflare is working and the host is the issue…

Any suggestions on what might be wrong?

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [August 16, 2020, 5:18pm UTC](https://meta.discourse.org/t/troubleshooting-port-access/161058/2 "2020-08-16T17:18:42Z")

</div>

the dns record has not been set or is not active.

once this is done, then discourse will install

---

<div class="post-metadata">

### Author: ![Matt\_Shields](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/matt_shields/32/148848_2.png) [@Matt\_Shields](https://meta.discourse.org/u/Matt_Shields)
#### Post date: [August 16, 2020, 5:26pm UTC](https://meta.discourse.org/t/troubleshooting-port-access/161058/3 "2020-08-16T17:26:20Z")

</div>

I have 2 A records in cloudflare that point to Digital Ocean.. isn’t that the only DNS records needed? I also have a number of cname set up but that is for sendgrid

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [August 16, 2020, 5:45pm UTC](https://meta.discourse.org/t/troubleshooting-port-access/161058/4 "2020-08-16T17:45:34Z")

</div>

I’d suspect that You’ve got cloudflare configured in Proxy mode. Disable that and You’ll be good to go.

---

<div class="post-metadata">

### Author: ![Matt\_Shields](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/matt_shields/32/148848_2.png) [@Matt\_Shields](https://meta.discourse.org/u/Matt_Shields)
#### Post date: [August 16, 2020, 5:50pm UTC](https://meta.discourse.org/t/troubleshooting-port-access/161058/5 "2020-08-16T17:50:02Z")

</div>

Thanks.. I have all of the orange clouds set to gray DNS only

---

<div class="post-metadata">

### Author: ![Matt\_Shields](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/matt_shields/32/148848_2.png) [@Matt\_Shields](https://meta.discourse.org/u/Matt_Shields)
#### Post date: [August 16, 2020, 6:17pm UTC](https://meta.discourse.org/t/troubleshooting-port-access/161058/6 "2020-08-16T18:17:22Z")

</div>

hmm… So if I enter in the hostname simply as [somedomain.co](http://somedomain.co) it will connect.. however if I enter it as [discourse.somedomain.co](http://discourse.somedomain.co) then it can’t reach the port… are you not supposed to include discourse in the host name?

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [August 16, 2020, 6:50pm UTC](https://meta.discourse.org/t/troubleshooting-port-access/161058/7 "2020-08-16T18:50:32Z")

</div>

something is blocking it to connect

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/f/9f6e99fa038552f17987d1ec7e14b93965dcf0e1.png)

---

<div class="post-metadata">

### Author: ![Matt\_Shields](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/matt_shields/32/148848_2.png) [@Matt\_Shields](https://meta.discourse.org/u/Matt_Shields)
#### Post date: [August 16, 2020, 6:53pm UTC](https://meta.discourse.org/t/troubleshooting-port-access/161058/8 "2020-08-16T18:53:08Z")

</div>

ahh sorry… I was editing the doamin name… it’s supposed to be [WeWiser.co](http://WeWiser.co)

---

<div class="post-metadata">

### Author: ![Matt\_Shields](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/matt_shields/32/148848_2.png) [@Matt\_Shields](https://meta.discourse.org/u/Matt_Shields)
#### Post date: [August 16, 2020, 6:54pm UTC](https://meta.discourse.org/t/troubleshooting-port-access/161058/9 "2020-08-16T18:54:27Z")

</div>

It seems to have completed the install when I only used [WeWiser.co](http://WeWiser.co) as the host… if I use [Discourse.wewiser.co](http://Discourse.wewiser.co) then the error happens

---

<div class="post-metadata">

### Author: ![Matt\_Shields](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/matt_shields/32/148848_2.png) [@Matt\_Shields](https://meta.discourse.org/u/Matt_Shields)
#### Post date: [August 16, 2020, 6:54pm UTC](https://meta.discourse.org/t/troubleshooting-port-access/161058/10 "2020-08-16T18:54:57Z")

</div>

But I’m not able to access the page when I go to that host name

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [August 16, 2020, 6:54pm UTC](https://meta.discourse.org/t/troubleshooting-port-access/161058/11 "2020-08-16T18:54:59Z")

</div>

can you take a screen shot of the a records

---

<div class="post-metadata">

### Author: ![Matt\_Shields](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/matt_shields/32/148848_2.png) [@Matt\_Shields](https://meta.discourse.org/u/Matt_Shields)
#### Post date: [August 16, 2020, 6:56pm UTC](https://meta.discourse.org/t/troubleshooting-port-access/161058/12 "2020-08-16T18:56:51Z")

</div>

![Screen Shot 2020-08-16 at 2.56.01 PM](https://global.discourse-cdn.com/meta/original/3X/9/2/92628c5fceaba4f6f341ff82d3dccf361d7f0983.jpeg)

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [August 16, 2020, 6:57pm UTC](https://meta.discourse.org/t/troubleshooting-port-access/161058/13 "2020-08-16T18:57:51Z")

</div>

there should be an A record for discourse

---

<div class="post-metadata">

### Author: ![Matt\_Shields](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/matt_shields/32/148848_2.png) [@Matt\_Shields](https://meta.discourse.org/u/Matt_Shields)
#### Post date: [August 16, 2020, 6:59pm UTC](https://meta.discourse.org/t/troubleshooting-port-access/161058/14 "2020-08-16T18:59:35Z")

</div>

Ohhh… Do I configure it like this [discourse.wewiser.co](http://discourse.wewiser.co)?

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [August 16, 2020, 7:00pm UTC](https://meta.discourse.org/t/troubleshooting-port-access/161058/15 "2020-08-16T19:00:42Z")

</div>

Name = discourse  
type = A  
Content = (ip address of droplet)

---

<div class="post-metadata">

### Author: ![Matt\_Shields](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/matt_shields/32/148848_2.png) [@Matt\_Shields](https://meta.discourse.org/u/Matt_Shields)
#### Post date: [August 16, 2020, 7:02pm UTC](https://meta.discourse.org/t/troubleshooting-port-access/161058/16 "2020-08-16T19:02:23Z")

</div>

ok cool I’ll run through it again

---

<div class="post-metadata">

### Author: ![Matt\_Shields](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/matt_shields/32/148848_2.png) [@Matt\_Shields](https://meta.discourse.org/u/Matt_Shields)
#### Post date: [August 16, 2020, 7:20pm UTC](https://meta.discourse.org/t/troubleshooting-port-access/161058/17 "2020-08-16T19:20:49Z")

</div>

Making progress I think!

It seems to have installed and when I go to the domain now it’s showing this

# Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer to [nginx.org](http://nginx.org/).  
Commercial support is available at [nginx.com](http://nginx.com/).

_Thank you for using nginx._

---

<div class="post-metadata">

### Author: ![Matt\_Shields](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/matt_shields/32/148848_2.png) [@Matt\_Shields](https://meta.discourse.org/u/Matt_Shields)
#### Post date: [August 16, 2020, 7:22pm UTC](https://meta.discourse.org/t/troubleshooting-port-access/161058/18 "2020-08-16T19:22:07Z")

</div>

sorry never mind! I see I dont need to add discourse to the url… it works thanks so much for the help!

---

<div class="post-metadata">

### Author: ![IAmGav](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/iamgav/32/235598_2.png) [@IAmGav](https://meta.discourse.org/u/IAmGav)
#### Post date: [August 16, 2020, 7:57pm UTC](https://meta.discourse.org/t/troubleshooting-port-access/161058/19 "2020-08-16T19:57:13Z")

</div>

you pointed the dns to the droplet, but your app.yml still says your domain is discourse.domain

change the domain name in the app.yml to [wewiser.co](http://wewiser.co) and then rebuild the app

cd /var/discourse  
./launcher rebuild app

---

<div class="post-metadata">

### Author: ![Matt\_Shields](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/matt_shields/32/148848_2.png) [@Matt\_Shields](https://meta.discourse.org/u/Matt_Shields)
#### Post date: [August 16, 2020, 8:09pm UTC](https://meta.discourse.org/t/troubleshooting-port-access/161058/20 "2020-08-16T20:09:59Z")

</div>

got it… just reloaded it and now it looks like the SSL is not implemented.. maybe I just need to rebuild the entire thing… distry this instance and launch a new one and update the ips?

[Next page](https://meta.discourse.org/t/troubleshooting-port-access/161058.md?page=2)
