# Devkinsta port number changed automatically and giving error :report.local unexpectedly closed the connection

**URL:** https://community.kinsta.com/t/devkinsta-port-number-changed-automatically-and-giving-error-report-local-unexpectedly-closed-the-connection/1956
**Category:** Application Support
**Created:** [December 21, 2022, 6:20am UTC](https://community.kinsta.com/t/devkinsta-port-number-changed-automatically-and-giving-error-report-local-unexpectedly-closed-the-connection/1956 "2022-12-21T06:20:38Z")
**Posts on this page:** 1
**Showing post:** 2

<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: [December 21, 2022, 7:27am UTC](https://community.kinsta.com/t/devkinsta-port-number-changed-automatically-and-giving-error-report-local-unexpectedly-closed-the-connection/1956/2 "2022-12-21T07:27:30Z")

</div>

Hello there @Anirudha_Chakrabarty 👋 welcome to DevKinsta community!

This might be due to the default web service ports (80 and 443) are used by other services running on your local computer (might be Apache that’s running by the XMAPP as you mentioned and it used those default ports possibly). Similar to the case as was reported (and resolved) [here](https://community.kinsta.com/t/disable-local-using-ports-e-g-mysite-local-51015/1612) and [here as well](https://community.kinsta.com/t/port-55948-added-after-local-url/1166).

If that’s the case, you may want to try stop the Apache service (or set it up with different ports other than 80/443 in its config file and re-start the Apache service), and also in **DevKinsta → Settings → Port selector** , you may want to un-check the “**[] Auto-detect open ports**” and set the **HTTP** to **80** and **HTTPS** to **443** (click the **Confirm** button) and check if you’re able to run your local site at `https://report.local`

Hopefully that will help to solve the issue you’re experiencing with that custom port thing.

cheers,  
Agus

---

_[View the full topic](https://community.kinsta.com/t/devkinsta-port-number-changed-automatically-and-giving-error-report-local-unexpectedly-closed-the-connection/1956)._
