# All websites get connection refused status and URL contains port number

**URL:** https://community.kinsta.com/t/all-websites-get-connection-refused-status-and-url-contains-port-number/2168
**Category:** Bug Reports
**Created:** [March 27, 2023, 2:40pm UTC](https://community.kinsta.com/t/all-websites-get-connection-refused-status-and-url-contains-port-number/2168 "2023-03-27T14:40:48Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![robbertv](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/robbertv/32/1581_2.png) [@robbertv](https://community.kinsta.com/u/robbertv)
#### Post date: [March 27, 2023, 2:40pm UTC](https://community.kinsta.com/t/all-websites-get-connection-refused-status-and-url-contains-port-number/2168/1 "2023-03-27T14:40:48Z")

</div>

**Q: Date/Time this occurred (Provide your time zone also)**  
**A: 3 weeks ago. After updating Devkinsta and Docker. Timezone GMT+2**

**Q: DevKinsta Version**  
**A: 2.10.0**

**Q: OS Version**  
**A: MacOS 12.0.1**

**Q: Docker Desktop Version**  
**A: 4.17.0**

**Q: Were any error codes or messages observed? If so, what were they?**  
**A: ERR\_CONNECTION\_REFUSED**

**Q: Detailed Description of the Problem**

A: Since I updated DevKinsta (and Docker) I cannot visit any of my local websites anymore. Every website I visit I get ERR\_CONNECTION\_REFUSED. Tested in multiple browsers.

What strikes me is that since I did the update and I open a site from the Devkinsta panel I get the port number behind every site :57357. This was not the case before. I could just visit any .local domain directly.

---

<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: [March 27, 2023, 3:02pm UTC](https://community.kinsta.com/t/all-websites-get-connection-refused-status-and-url-contains-port-number/2168/2 "2023-03-27T15:02:38Z")

</div>

Hey @robbertv , welcome to DevKinsta Community!  
Can you please send me a copy of your main.log file via DM? You can find it by clicking on the question mark icon at the bottom left corner of DevKinsta and then on Reveal log file in File Manager.  
We’d like to give a look at it and help you find the culprit.

Regards,  
Alessandro

---

<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: [March 27, 2023, 3:14pm UTC](https://community.kinsta.com/t/all-websites-get-connection-refused-status-and-url-contains-port-number/2168/3 "2023-03-27T15:14:13Z")

</div>

Thank you for providing the requested log file @robbertv.  
🤔 Can you please try to create a new site and tell us if you are able to see it without issues?

---

<div class="post-metadata">

### Author: ![robbertv](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/robbertv/32/1581_2.png) [@robbertv](https://community.kinsta.com/u/robbertv)
#### Post date: [March 27, 2023, 3:23pm UTC](https://community.kinsta.com/t/all-websites-get-connection-refused-status-and-url-contains-port-number/2168/4 "2023-03-27T15:23:25Z")

</div>

Hi Alessandro,

Thanks for your quick response.

I created a new website and that works, but it also has the port number in the URL.

---

<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: [March 27, 2023, 3:49pm UTC](https://community.kinsta.com/t/all-websites-get-connection-refused-status-and-url-contains-port-number/2168/5 "2023-03-27T15:49:08Z")

</div>

Regarding the ports, was DevKinsta recently updated?

Also, can you please open the application called Terminal and run a ping as in:

`ping yoursite.local`

replacing yoursite with one of the existing domain added in DevKinsta. Do you see a response similar to the following, or a timeout?

```auto
PING yoursite.local (127.0.0.1): 56 data bytes
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.096 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.129 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.164 ms

```

---

<div class="post-metadata">

### Author: ![mmcclard](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/mmcclard/32/4195_2.png) [@mmcclard](https://community.kinsta.com/u/mmcclard)
#### Post date: [March 27, 2023, 5:15pm UTC](https://community.kinsta.com/t/all-websites-get-connection-refused-status-and-url-contains-port-number/2168/6 "2023-03-27T17:15:49Z")

</div>

@Alessandro my team is experiencing the same issues.

I do see the similar output when running  
`ping yoursite.local`

---

<div class="post-metadata">

### Author: ![mmcclard](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/mmcclard/32/4195_2.png) [@mmcclard](https://community.kinsta.com/u/mmcclard)
#### Post date: [March 27, 2023, 5:35pm UTC](https://community.kinsta.com/t/all-websites-get-connection-refused-status-and-url-contains-port-number/2168/7 "2023-03-27T17:35:17Z")

</div>

Looks like this was resolved by ensuring mykinsta accounts are using `2FA`

---

<div class="post-metadata">

### Author: ![robbertv](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/robbertv/32/1581_2.png) [@robbertv](https://community.kinsta.com/u/robbertv)
#### Post date: [March 27, 2023, 6:08pm UTC](https://community.kinsta.com/t/all-websites-get-connection-refused-status-and-url-contains-port-number/2168/8 "2023-03-27T18:08:02Z")

</div>

Yes, I get the same output when pinging one of the earlier websites:

```auto
64 bytes from 127.0.0.1: icmp_seq=0 ttl=64 time=0.112 ms
64 bytes from 127.0.0.1: icmp_seq=1 ttl=64 time=0.160 ms
64 bytes from 127.0.0.1: icmp_seq=2 ttl=64 time=0.164 ms
64 bytes from 127.0.0.1: icmp_seq=3 ttl=64 time=0.234 ms
64 bytes from 127.0.0.1: icmp_seq=4 ttl=64 time=0.309 ms

```

---

<div class="post-metadata">

### Author: ![robbertv](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/robbertv/32/1581_2.png) [@robbertv](https://community.kinsta.com/u/robbertv)
#### Post date: [March 27, 2023, 6:10pm UTC](https://community.kinsta.com/t/all-websites-get-connection-refused-status-and-url-contains-port-number/2168/9 "2023-03-27T18:10:35Z")

</div>

But I do not have a mykinsta account connected.

---

<div class="post-metadata">

### Author: ![Agus](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/agus/32/1515_2.png) [@Agus](https://community.kinsta.com/u/Agus)
#### Post date: [March 28, 2023, 2:07am UTC](https://community.kinsta.com/t/all-websites-get-connection-refused-status-and-url-contains-port-number/2168/10 "2023-03-28T02:07:55Z")

</div>

Hello @robbertv👋

Can you please try the following and see if this will help to solve that port related issue ?

1. Open your DevKinsta, then click on the bottom left (blue) icon - to open the **Settings** page
2. On that Settings page, scroll down and locate for the “ **Port selector** ” section.
3. Un-check the " Auto-detect open ports "
4. Put `80` to the HTTP field, and put `443` to the HTTPS field.
5. Click the “ **Confirm** ” button

After that, please try to access your local site(s) once again and see if it’s showing properly (without any additional port `57357` behind the URL)?

Please let us know again with the results.

Cheers,  
Agus

---

<div class="post-metadata">

### Author: ![robbertv](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/robbertv/32/1581_2.png) [@robbertv](https://community.kinsta.com/u/robbertv)
#### Post date: [March 28, 2023, 7:22am UTC](https://community.kinsta.com/t/all-websites-get-connection-refused-status-and-url-contains-port-number/2168/11 "2023-03-28T07:22:51Z")

</div>

@Agus thanks it works. I can only not visit the websites with HTTPS. Is that usual?

---

<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: [March 28, 2023, 8:32am UTC](https://community.kinsta.com/t/all-websites-get-connection-refused-status-and-url-contains-port-number/2168/12 "2023-03-28T08:32:03Z")

</div>

Hey @robbertv ,  
give this a go:

1. Open the app called Keychain Access on your mac, it is preinstalled
2. Select the Login tab at the left, and the Certificates at the top
3. Find your local sites’ SSL certificates and copy them
4. Move to the System tab at the left, and then paste the certificates
5. Restart your browser

Regards,  
Alessandro

---

<div class="post-metadata">

### Author: ![robbertv](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/robbertv/32/1581_2.png) [@robbertv](https://community.kinsta.com/u/robbertv)
#### Post date: [March 28, 2023, 8:58am UTC](https://community.kinsta.com/t/all-websites-get-connection-refused-status-and-url-contains-port-number/2168/13 "2023-03-28T08:58:31Z")

</div>

Hi Alessandro,

Super thanks for your quick reply again.

Followed your instructions and it works 🙂

Many thanks and have a great day.

---

<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: [March 28, 2023, 8:59am UTC](https://community.kinsta.com/t/all-websites-get-connection-refused-status-and-url-contains-port-number/2168/14 "2023-03-28T08:59:05Z")

</div>

We are glad to be of help!

Thanks, you too 👍

---

<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: [March 31, 2023, 8:59am UTC](https://community.kinsta.com/t/all-websites-get-connection-refused-status-and-url-contains-port-number/2168/15 "2023-03-31T08:59:13Z")

</div>

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