# Connection is timing out

**URL:** https://meta.discourse.org/t/connection-is-timing-out/241361
**Category:** Self-hosting
**Tags:** hosting
**Created:** [October 8, 2022, 8:34pm UTC](https://meta.discourse.org/t/connection-is-timing-out/241361 "2022-10-08T20:34:56Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [October 8, 2022, 8:34pm UTC](https://meta.discourse.org/t/connection-is-timing-out/241361/1 "2022-10-08T20:34:56Z")

</div>

Hello,

When I tried making an instance on AWS and connected it all correctly, my instance is timing out, not allowing me to connect to it.

 ![image](https://global.discourse-cdn.com/meta/original/4X/a/7/0/a709e9622f0e00c99db414e8245370406260c7c8.png)

The website is [https://test.darkpixlz.tk](https://test.darkpixlz.tk), and the server claims it’s running.

![image](https://global.discourse-cdn.com/meta/original/4X/f/d/d/fddf9e366a9a1a72c43fd0f23ddb823e67f73a14.png)

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [October 8, 2022, 8:44pm UTC](https://meta.discourse.org/t/connection-is-timing-out/241361/2 "2022-10-08T20:44:12Z")

</div>

What did you do to make the server available externally? Did `discourse-setup` do the connectivity check, or did you bypass it?

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [October 8, 2022, 8:44pm UTC](https://meta.discourse.org/t/connection-is-timing-out/241361/3 "2022-10-08T20:44:54Z")

</div>

I’m running the public IP through Cloudflare to access through the domain, and yes it passed.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [October 8, 2022, 8:45pm UTC](https://meta.discourse.org/t/connection-is-timing-out/241361/4 "2022-10-08T20:45:28Z")

</div>

So you set up specific access rules for 80 and 443?

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [October 8, 2022, 8:46pm UTC](https://meta.discourse.org/t/connection-is-timing-out/241361/5 "2022-10-08T20:46:43Z")

</div>

No, was never made aware on how to do that. I just have an A record pointing to the server’s IP.

 ![image](https://global.discourse-cdn.com/meta/original/4X/f/f/0/ff04a6fdb2aaee8f03eadf2d1d59ea4912f6598e.png)

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [October 8, 2022, 9:08pm UTC](https://meta.discourse.org/t/connection-is-timing-out/241361/6 "2022-10-08T21:08:55Z")

</div>

So what happens if you switch it to “DNS only”? Does it start working then?

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [October 8, 2022, 9:09pm UTC](https://meta.discourse.org/t/connection-is-timing-out/241361/7 "2022-10-08T21:09:29Z")

</div>

When I was doing that I was getting my browser’s “Connection Timed Out” screen.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [October 8, 2022, 9:17pm UTC](https://meta.discourse.org/t/connection-is-timing-out/241361/8 "2022-10-08T21:17:34Z")

</div>

> [@darkpixlz](#):
>
> an instance on AWS

Have you configured the EC2 instance security group in order to allow ingress traffic on the ports 80/443?

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [October 8, 2022, 9:19pm UTC](https://meta.discourse.org/t/connection-is-timing-out/241361/9 "2022-10-08T21:19:05Z")

</div>

I believe I have

 ![image](https://global.discourse-cdn.com/meta/original/4X/4/7/5/4756b8b44958cf067dfd0884b3c2b954a9e7576b.png)

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [October 8, 2022, 10:12pm UTC](https://meta.discourse.org/t/connection-is-timing-out/241361/10 "2022-10-08T22:12:01Z")

</div>

Yeah, it’s definitely connecting, because when I went to rebuild it says the server is down which si correct, but when it goes it it just times out.

 ![image](https://global.discourse-cdn.com/meta/original/4X/5/7/8/578d7398c48d988c2c76cb66f74b1ece5fe08a1d.png)

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [October 8, 2022, 11:51pm UTC](https://meta.discourse.org/t/connection-is-timing-out/241361/11 "2022-10-08T23:51:16Z")

</div>

That just means Cloudflare can’t contact an upstream server. Turn off the orange cloud.

---

<div class="post-metadata">

### Author: ![darkpixlz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/darkpixlz/32/549896_2.png) [@darkpixlz](https://meta.discourse.org/u/darkpixlz)
#### Post date: [October 8, 2022, 11:52pm UTC](https://meta.discourse.org/t/connection-is-timing-out/241361/12 "2022-10-08T23:52:12Z")

</div>

I was able to get it working, I just had to make another instance, then use HTTP.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [October 9, 2022, 11:18am UTC](https://meta.discourse.org/t/connection-is-timing-out/241361/13 "2022-10-09T11:18:41Z")

</div>

That shouldn’t be necessary.

Did you try to build the instance more than once prior to fixing the access rules? If so it’s possible Let’s Encrypt put your hostname on a seven day cooldown.
