# ERR\_CONNECTION\_REFUSED when loading website

**URL:** https://community.kinsta.com/t/err-connection-refused-when-loading-website/3877
**Category:** Application Support
**Created:** [August 27, 2024, 1:37pm UTC](https://community.kinsta.com/t/err-connection-refused-when-loading-website/3877 "2024-08-27T13:37:43Z")
**Posts on this page:** 13
**Page:** 1

<div class="post-metadata">

### Author: ![Fabrice](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/fabrice/32/3833_2.png) [@Fabrice](https://community.kinsta.com/u/Fabrice)
#### Post date: [August 27, 2024, 1:37pm UTC](https://community.kinsta.com/t/err-connection-refused-when-loading-website/3877/1 "2024-08-27T13:37:43Z")

</div>

Hi everyone,

since few days I’m unable to load my website, the error is ERR\_CONNECTION\_REFUSED.  
I tried to uncheck the auto-detect port. But the issue is still there.  
I saw that even though I unchecked this option, when I launch the website it goes to a url: exampledomain:33295  
I updated with the last version of DevKinsta and Docker.

Thanks

---

<div class="post-metadata">

### Author: ![jackirish](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jackirish/32/1361_2.png) [@jackirish](https://community.kinsta.com/u/jackirish)
#### Post date: [August 27, 2024, 2:30pm UTC](https://community.kinsta.com/t/err-connection-refused-when-loading-website/3877/2 "2024-08-27T14:30:34Z")

</div>

Hi @Fabrice ! 👋 Welcome to the Kinsta Community.

When you unchecked the option to auto-detect ports, did you also add `80` to the `HTTP` field, and `443` to the `HTTPS` field? If not, please do that and let me know what the result of that test is.

If you’re still having issues after that attempt, please send us the `main.log` file from the site: [DevKinsta - Troubleshooting - Main.log File](https://kinsta.com/docs/devkinsta/devkinsta-troubleshooting/error-codes/#viewing-the-application-log-file)

---

<div class="post-metadata">

### Author: ![Fabrice](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/fabrice/32/3833_2.png) [@Fabrice](https://community.kinsta.com/u/Fabrice)
#### Post date: [August 28, 2024, 7:25am UTC](https://community.kinsta.com/t/err-connection-refused-when-loading-website/3877/3 "2024-08-28T07:25:24Z")

</div>

Hi,

yes I add 80 an 443 port and click on confirm.  
No change.  
Thanks I send you the main.log

---

<div class="post-metadata">

### Author: ![jackirish](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jackirish/32/1361_2.png) [@jackirish](https://community.kinsta.com/u/jackirish)
#### Post date: [August 28, 2024, 3:06pm UTC](https://community.kinsta.com/t/err-connection-refused-when-loading-website/3877/5 "2024-08-28T15:06:10Z")

</div>

Thank you for providing that!

Hm, I took a look and while I see the failed connection attempts before the port changes, but I’m not seeing those same attempts after the port changes. I see attempts to `80` and `443` shortly after that, but I also see attempts to `81` and `444` - was that a change that you made as a test? Generally speaking, we would want to keep it on `80` and `443`.

Can you please close out of DevKinsta, stop your `devkinsta_nginx` container, delete it, and then restart DevKinsta? That will automatically recreate the container:

 ![stop-delete](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/c/ccb66698aa714d69f4f65ba966c9049d1a282544.png)

---

<div class="post-metadata">

### Author: ![Fabrice](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/fabrice/32/3833_2.png) [@Fabrice](https://community.kinsta.com/u/Fabrice)
#### Post date: [August 28, 2024, 3:47pm UTC](https://community.kinsta.com/t/err-connection-refused-when-loading-website/3877/6 "2024-08-28T15:47:23Z")

</div>

Thanks for your search.  
Yes the 81 and 444 was just a test, just after I set the 80 and 443.  
If delete the devkinsta\_nginx I doesn’t lost data ? I said that because I’ve got a repository git who is not on the live website.  
Thanks

---

<div class="post-metadata">

### Author: ![VladimirM](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/vladimirm/32/2786_2.png) [@VladimirM](https://community.kinsta.com/u/VladimirM)
#### Post date: [August 29, 2024, 7:17am UTC](https://community.kinsta.com/t/err-connection-refused-when-loading-website/3877/7 "2024-08-29T07:17:04Z")

</div>

Hello Fabrice 👋

If you delete containers and images related to DevKinsta within Docker, but preserve the volumes, there should be no loss of data.

---

<div class="post-metadata">

### Author: ![Fabrice](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/fabrice/32/3833_2.png) [@Fabrice](https://community.kinsta.com/u/Fabrice)
#### Post date: [August 29, 2024, 7:56am UTC](https://community.kinsta.com/t/err-connection-refused-when-loading-website/3877/8 "2024-08-29T07:56:40Z")

</div>

Hello,

I deleted the devkinsta\_nginx but the issue is still there.  
Thanks

---

<div class="post-metadata">

### Author: ![VladimirM](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/vladimirm/32/2786_2.png) [@VladimirM](https://community.kinsta.com/u/VladimirM)
#### Post date: [August 29, 2024, 9:09am UTC](https://community.kinsta.com/t/err-connection-refused-when-loading-website/3877/9 "2024-08-29T09:09:30Z")

</div>

Sorry if I’m asking the obvious, but you shut down both DevKinsta and Docker and restarted them before checking? I’m looking into the alternatives, but I want to make sure.

Kind regards

---

<div class="post-metadata">

### Author: ![Fabrice](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/fabrice/32/3833_2.png) [@Fabrice](https://community.kinsta.com/u/Fabrice)
#### Post date: [August 29, 2024, 9:41am UTC](https://community.kinsta.com/t/err-connection-refused-when-loading-website/3877/10 "2024-08-29T09:41:01Z")

</div>

Yes I restarted both.  
Thanks

---

<div class="post-metadata">

### Author: ![Alessandro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/alessandro/32/2310_2.png) [@Alessandro](https://community.kinsta.com/u/Alessandro)
#### Post date: [August 30, 2024, 9:06am UTC](https://community.kinsta.com/t/err-connection-refused-when-loading-website/3877/11 "2024-08-30T09:06:26Z")

</div>

Hello @Fabrice, can you please check the following:

1. Check that the DNS entries in your hostfile are still in place and are pointing to 127.0.0.1, you can do this by testing your domain with a simple ping command like in the picture:  
 ![Screenshot 2024-08-30 at 09.39.34](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/6/6b386691e0b0b53aecd5e255532b026d9184e62a.png)
2. If you create a new vanilla WordPress site in DevKinsta, are you able to reach the page and surf the site properly? And does that URL uses ports?

Regards,  
Alessandro

---

<div class="post-metadata">

### Author: ![Fabrice](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/fabrice/32/3833_2.png) [@Fabrice](https://community.kinsta.com/u/Fabrice)
#### Post date: [August 30, 2024, 9:43am UTC](https://community.kinsta.com/t/err-connection-refused-when-loading-website/3877/13 "2024-08-30T09:43:43Z")

</div>

Hi,

1. Yes it’s in the hostfile in ipv4 and ipv6.

the ping command return the ipv6:

Réponse de ::1 : temps\<1ms  
Réponse de ::1 : temps\<1ms  
Réponse de ::1 : temps\<1ms  
Réponse de ::1 : temps\<1ms

1. Yes it’s working, with the default port 80/443

Thanks for your help

---

<div class="post-metadata">

### Author: ![Fabrice](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/fabrice/32/3833_2.png) [@Fabrice](https://community.kinsta.com/u/Fabrice)
#### Post date: [August 30, 2024, 2:00pm UTC](https://community.kinsta.com/t/err-connection-refused-when-loading-website/3877/14 "2024-08-30T14:00:13Z")

</div>

Hello,

I find a fix, I see that my database haven’t all the data (before It’s was ok).  
So I pull from a dump from the live server, after that I see If load with the url mydomain.local/fr (or /en) the website works well, but If I click on the “open website” on Devkinsta I’ve got the redirection on mydomain.local:33295.  
I don’t know why, but it’s not a big deal. In the setting I set 33295 for the https port, and the button works fine now.

Thanks for your help

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/8/80f8c4e56fecc02327a0964e6bf63a716483529f.png) [@system](https://community.kinsta.com/u/system)
#### Post date: [September 3, 2024, 9:36pm UTC](https://community.kinsta.com/t/err-connection-refused-when-loading-website/3877/15 "2024-09-03T21:36:09Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
