# Error DK0031: Port 80 and 443 is used

**URL:** https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101
**Category:** Bug Reports
**Created:** [January 18, 2021, 11:34pm UTC](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101 "2021-01-18T23:34:14Z")
**Posts on this page:** 20
**Page:** 2

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [April 21, 2021, 8:19pm UTC](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101/21 "2021-04-21T20:19:10Z")

</div>

Hi @Cheesegrits . No updates yet I’m afraid but will provide an update here as soon as we have more to share on this.

---

<div class="post-metadata">

### Author: ![jcasabona](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jcasabona/32/40_2.png) [@jcasabona](https://community.kinsta.com/u/jcasabona)
#### Post date: [January 14, 2021, 2:11pm UTC](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101/22 "2021-01-14T14:11:22Z")

</div>

Hey all!

I started installing DevKinsta this morning but I hit a wall, getting the error that Port 80 or 443 is in use. The Docker suggested solution of killing whatever is on port 80 doesn’t work, and when I kill what’s listening on 443, I still get the error - screenshot below.

Is there a way to use this on a separate port that isn’t already used by HTTP/HTTPS?

I’m using an iMac Pro running macOS Catalina 10.15.7

 ![Screen Shot 2021-01-14 at 9.09.45 AM](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/1X/a69db0710879078c772c8ee4a7d148edebd84a75.jpeg)

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [January 14, 2021, 4:59pm UTC](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101/23 "2021-01-14T16:59:11Z")

</div>

Hi @jcasabona . Great to see you on here! Welcome! Could you share with us what’s currently running on those ports via `lsof -iTCP -sTCP:LISTEN` ? Thanks!

---

<div class="post-metadata">

### Author: ![jcasabona](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jcasabona/32/40_2.png) [@jcasabona](https://community.kinsta.com/u/jcasabona)
#### Post date: [January 14, 2021, 5:27pm UTC](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101/24 "2021-01-14T17:27:35Z")

</div>

Hi Michael,

I have several apps running according to the list, including Spotify, my Stream Deck, Dropbox and more.

I hope this doesn’t come off as combative, but can you tell me the purpose for requesting that information?

Are there known conflicts with other Docker-based apps like Local by Flywheel?

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [January 14, 2021, 6:44pm UTC](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101/25 "2021-01-14T18:44:35Z")

</div>

Hi Joe,

No problem at all. The purpose was so we can better understand what’s conflicting with DevKinsta. It may conflict if you have other web services running with port 80 or 443. In my own testing, it does not appear to conflict with Local.

---

<div class="post-metadata">

### Author: ![jcasabona](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jcasabona/32/40_2.png) [@jcasabona](https://community.kinsta.com/u/jcasabona)
#### Post date: [January 14, 2021, 9:17pm UTC](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101/26 "2021-01-14T21:17:42Z")

</div>

Thanks Michael,

Understood! Attached are the results of the command.

In the mean time, is there a way to define a different port?

 ![Screen Shot 2021-01-14 at 4.16.59 PM](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/1X/534dbb625035ebc9567e37746208532a85948083.jpeg)

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [January 14, 2021, 11:51pm UTC](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101/27 "2021-01-14T23:51:07Z")

</div>

Thanks for the screenshot. I don’t see 80 or 443 being used there. I’m checking with the development team on this as well and will get back to you shortly. I’m afraid at this time it’s not possible to define a different port. It’d make for a great first [feature request](https://community.kinsta.com/c/feature-requests/6) though!

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [January 15, 2021, 5:16pm UTC](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101/28 "2021-01-15T17:16:49Z")

</div>

Hi Joe. Although we’re unable to determine the cause of the issue you’re having, we’ll be releasing a fix that includes additional checks regarding ports in the next version. Sorry for the trouble and thanks again for trying out DevKinsta!

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [January 15, 2021, 7:30pm UTC](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101/29 "2021-01-15T19:30:27Z")

</div>

Hey Joe. Sorry for the double reply. Could you try one more thing? Try restarting the customer with no other applications running. Then try opening DevKinsta again and let us know if that helps.

---

<div class="post-metadata">

### Author: ![jcasabona](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jcasabona/32/40_2.png) [@jcasabona](https://community.kinsta.com/u/jcasabona)
#### Post date: [January 16, 2021, 2:20pm UTC](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101/30 "2021-01-16T14:20:30Z")

</div>

Michael,

Watching the Memory processes in Activity Monitor, what’s using Port 80 switches as processes switch. Some are system level and as expected, restarting did not work.

Joe

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [January 18, 2021, 2:08pm UTC](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101/31 "2021-01-18T14:08:10Z")

</div>

Hi Joe,  
Could you try the [latest version of DevKinsta](https://kinsta.com/devkinsta/) and let me know if that helps?  
Thanks!

---

<div class="post-metadata">

### Author: ![jcasabona](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jcasabona/32/40_2.png) [@jcasabona](https://community.kinsta.com/u/jcasabona)
#### Post date: [January 18, 2021, 6:49pm UTC](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101/32 "2021-01-18T18:49:40Z")

</div>

That didn’t work, nor did uninstalling Docker and starting from scratch.

---

<div class="post-metadata">

### Author: ![jcasabona](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jcasabona/32/40_2.png) [@jcasabona](https://community.kinsta.com/u/jcasabona)
#### Post date: [January 18, 2021, 7:05pm UTC](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101/33 "2021-01-18T19:05:11Z")

</div>

I was able to get it working on my BigSur laptop. I’m not really sure what the conflict is on my iMac Pro. The main difference is I’m running Catalina on this and I have several live streaming tools.

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [January 18, 2021, 7:17pm UTC](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101/34 "2021-01-18T19:17:37Z")

</div>

Thanks for testing that out. Our developers will look into this and I’ll provide an update when we have more information.

We also have a [feature request submitted for changing port numbers](https://community.kinsta.com/t/set-devkinsta-ports-to-other-than-80-443/76) if you want to add to that 🙂

---

<div class="post-metadata">

### Author: ![ElliottMangham](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/elliottmangham/32/79_2.png) [@ElliottMangham](https://community.kinsta.com/u/ElliottMangham)
#### Post date: [January 18, 2021, 11:38pm UTC](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101/35 "2021-01-18T23:38:21Z")

</div>

Hi @michael,

I thought it worthwhile to +1 this as I am having the exact same issue. I am on macOS v11.1 and also have Local by Flywheel installed.

Check:

 ![Screenshot 2021-01-18 at 11.37.30 pm](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/1X/625710a65c8f0e793ab2342bf58d1496ad324f05.png)

Thank you

---

<div class="post-metadata">

### Author: ![ElliottMangham](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/elliottmangham/32/79_2.png) [@ElliottMangham](https://community.kinsta.com/u/ElliottMangham)
#### Post date: [January 18, 2021, 11:44pm UTC](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101/36 "2021-01-18T23:44:22Z")

</div>

Update: Hi @michael and @jcasabona I managed to complete the installation by killing all processes on port 80, however, I have no idea if this is a long-term fix (presumably not).

Mac:

```auto
# find & kill processes which are using port 80
sudo lsof -i tcp:80 | grep LISTEN | awk '{print $2}' | xargs kill -9

```

Windows:

```auto
# find processes which are using port 80
netstat -ano | findstr :80

# kill process by PID. replace "<PID>" with result from the above command.
taskkill /PID <PID> /F

```

Support: [DevKinsta Error Codes - Kinsta](https://kinsta.com/knowledgebase/devkinsta/error-codes/#dk0031)

Best,

---

<div class="post-metadata">

### Author: ![michael](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/michael/32/31_2.png) [@michael](https://community.kinsta.com/u/michael)
#### Post date: [January 18, 2021, 11:53pm UTC](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101/37 "2021-01-18T23:53:41Z")

</div>

Thanks for the workaround, @ElliottMangham. We’ll have more information on this soon too.

---

<div class="post-metadata">

### Author: ![jarno](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jarno/32/4097_2.png) [@jarno](https://community.kinsta.com/u/jarno)
#### Post date: [January 20, 2021, 4:54pm UTC](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101/38 "2021-01-20T16:54:48Z")

</div>

Hi @ElliottMangham I tried to use your command but I get this error:

```
kill: 78: Operation not permitted

```

Do you have the solution for this?

---

<div class="post-metadata">

### Author: ![ElliottMangham](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/elliottmangham/32/79_2.png) [@ElliottMangham](https://community.kinsta.com/u/ElliottMangham)
#### Post date: [January 20, 2021, 5:19pm UTC](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101/39 "2021-01-20T17:19:42Z")

</div>

Hey, I am afraid I only followed Kinsta’s own support page: [DevKinsta Error Codes - Kinsta](https://kinsta.com/knowledgebase/devkinsta/error-codes/#dk0031)

---

<div class="post-metadata">

### Author: ![jcasabona](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jcasabona/32/40_2.png) [@jcasabona](https://community.kinsta.com/u/jcasabona)
#### Post date: [January 22, 2021, 3:03pm UTC](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101/40 "2021-01-22T15:03:21Z")

</div>

I’m not sure if this is helpful, but checking the actual Docker app, it seems devkinsta has had some resources created there despite the installation failing.

 ![Screen Shot 2021-01-22 at 10.01.43 AM](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/1X/e5788baa7ff823cf015ae57d0815ca89dcea9511.jpeg)

[Previous page](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101.md?page=1)

[Next page](https://community.kinsta.com/t/error-dk0031-port-80-and-443-is-used/101.md?page=3)
