# Ports reset when DevKinsta is closed

**URL:** https://community.kinsta.com/t/ports-reset-when-devkinsta-is-closed/2878
**Category:** Questions
**Created:** [December 19, 2023, 3:50pm UTC](https://community.kinsta.com/t/ports-reset-when-devkinsta-is-closed/2878 "2023-12-19T15:50:58Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![whadaday](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/whadaday/32/2194_2.png) [@whadaday](https://community.kinsta.com/u/whadaday)
#### Post date: [December 19, 2023, 3:50pm UTC](https://community.kinsta.com/t/ports-reset-when-devkinsta-is-closed/2878/1 "2023-12-19T15:50:58Z")

</div>

Everytime when DevKinsta is closed (like after the computer was turned off) I need to change the ports to “62090” and “62091”.

See attached image of the ports which are resetted everytime I open DevKinsta.

 ![Scherm­afbeelding 2023-12-19 om 16.46.48](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/4/4a1c55aec8bbbd1216419004d68266dc2e4f2745.png)

Is it possible to change to ports to “62090” and “62091” permanently?

---

<div class="post-metadata">

### Author: ![merineth](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/merineth/32/3022_2.png) [@merineth](https://community.kinsta.com/u/merineth)
#### Post date: [December 20, 2023, 7:18am UTC](https://community.kinsta.com/t/ports-reset-when-devkinsta-is-closed/2878/3 "2023-12-20T07:18:11Z")

</div>

Hi Angelo,

Hope everything is well. Thank you for providing the screenshot.

Regarding your question, Yes, it is possible to set the ports 62090 and 62091 permanently. You just need to specify it under the “Port Selection” section.

I tried to replicate this issue on my end but can’t seem to get the same issue. I have asked some of my colleagues too but still the same. I wonder what could be the reason for this and I am happy to work with you to get it resolved.

Can you please set the custom ports again, save it and close DevKinsta completely (not just minimized in the taskbar). Then open DevKinsta and see if the behavior still occurs.

Please make sure that the **“Auto detect open port”** under the Port Selector section is unticked so that it won’t automatically assign new ports.

Also, can you please provide the following?

Machine OS  
DevKinsta Version  
Dock Desktop Version

Looking forward to your response.

Regards.

Merineth

---

<div class="post-metadata">

### Author: ![whadaday](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/whadaday/32/2194_2.png) [@whadaday](https://community.kinsta.com/u/whadaday)
#### Post date: [December 20, 2023, 4:30pm UTC](https://community.kinsta.com/t/ports-reset-when-devkinsta-is-closed/2878/4 "2023-12-20T16:30:23Z")

</div>

Hi Merineth,

Unfortunately that doesn’t help. Everytime when the iMac is turned off and when I turn it on this happens. I also noticed that I see the message “Ports are in use”. “The default ports are confirmed by other processes. DevKinsta has started the Nginx container with random ports.”

 ![Scherm­afbeelding 2023-12-20 om 09.38.30](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/f/ffcad6becf8f1059bc881fa58fdfeafc051b898e.png)

 ![Scherm­afbeelding 2023-12-20 om 09.38.19](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/7/7aef4967b7865e02cbc257377fdf9039dcf2f00e.png)

Updating docker fixed the issue. Thank you!

Also, after I turn on my computer and start DevKinsta. It is stuck loading. It will continue loading after I put this in the terminal “% sudo ln -s “$HOME/.docker/run/docker.sock” /var/run/docker.sock”.

Can you help me with this?

MacOs: Sanoma 14.2 (23C64)  
DevKinsta 2.11.0  
Dock: 4.22.0

---

<div class="post-metadata">

### Author: ![Adrian\_L](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/adrian_l/32/2810_2.png) [@Adrian\_L](https://community.kinsta.com/u/Adrian_L)
#### Post date: [December 21, 2023, 4:22am UTC](https://community.kinsta.com/t/ports-reset-when-devkinsta-is-closed/2878/5 "2023-12-21T04:22:44Z")

</div>

Hey @whadaday 👋

If you’re experiencing an issue with Devkinsta initialization, I suggest checking out the main.log file. It may contain an error message that’s causing the problem.

On Mac OS, you can find the main.log file here: `/Users/<yourusername>/Library/Logs/DevKinsta`.

> **[Troubleshooting - Error Codes - Kinsta® Docs](https://kinsta.com/docs/devkinsta/devkinsta-troubleshooting/error-codes)**
>
> Find out what error codes may be returned in DevKinsta, what each of them means, and how you can fix them.

I hope this helps you get things sorted out!

---

<div class="post-metadata">

### Author: ![whadaday](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/whadaday/32/2194_2.png) [@whadaday](https://community.kinsta.com/u/whadaday)
#### Post date: [December 23, 2023, 7:43am UTC](https://community.kinsta.com/t/ports-reset-when-devkinsta-is-closed/2878/6 "2023-12-23T07:43:39Z")

</div>

Hi Adrian,

Thank you! I seems that it keeps hanging with this code:

```auto
[2023-12-22 09:31:42.665] [info] [dockerClient/isReady] Check if Docker client is ready

```

---

<div class="post-metadata">

### Author: ![Andrew](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/andrew/32/2792_2.png) [@Andrew](https://community.kinsta.com/u/Andrew)
#### Post date: [December 23, 2023, 6:51pm UTC](https://community.kinsta.com/t/ports-reset-when-devkinsta-is-closed/2878/7 "2023-12-23T18:51:47Z")

</div>

Hi @whadaday!

Thank you for your reply, and for providing that log information. I see you mentioned that the DevKinsta client is able to continue launching if you manually link the docker.sock file to /var/run. I do want to confirm that the Docker Desktop application is properly configured to link this path at launch. Would you be able to please provide a screenshot showing the “Advanced” tab under the Docker Desktop’s settings page?

You may find this page by launching the Docker Desktop application, click the gear icon in the top right of the window, and then select the “Advanced” setting option on the left side of the window.

Looking forward to your reply!

Best regards
