# Port exhaustion issues

**URL:** <https://kopia.discourse.group/t/port-exhaustion-issues/1915>\
**Category:** Support\
**Created:** [March 27, 2023, 11:08pm UTC](https://kopia.discourse.group/t/port-exhaustion-issues/1915 "2023-03-27T23:08:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![dfduarte](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/dfduarte/32/656_2.png) [@dfduarte](https://kopia.discourse.group/u/dfduarte)\
**Post date:** [March 27, 2023, 11:08pm UTC](https://kopia.discourse.group/t/port-exhaustion-issues/1915/1 "2023-03-27T23:08:59Z")

</div>

My computer occasionally stops all network activity and i noticed it is Kopia using ALL ports.

The issue is described here: [https://learn.microsoft.com/en-us/troubleshoot/windows-client/networking/tcp-ip-port-exhaustion-troubleshooting](https://learn.microsoft.com/en-us/troubleshoot/windows-client/networking/tcp-ip-port-exhaustion-troubleshooting)

netstat -b results:  
[kopia.exe]  
TCP 127.0.0.1:49866 mycomputername:49218 ESTABLISHED  
[kopia.exe]  
TCP 127.0.0.1:49866 mycomputername:49219 ESTABLISHED  
[kopia.exe]  
TCP 127.0.0.1:49866 mycomputername:49220 ESTABLISHED  
and hundreds and hundreds more…

I’m running the latest KopiaUI on Windows 11. I connect to 3 repositories, one over the internet to a repository server at work (work files), a local folder on an internal drive, and a third one on a friends PC over the internet via a ZeroTier network.

Network goes back to normal for a while after a quit Kopia.

---

<div class="post-metadata">

**Author:** ![christoph](https://avatars.discourse-cdn.com/v4/letter/c/eb8c5e/32.png) [@christoph](https://kopia.discourse.group/u/christoph)\
**Post date:** [October 1, 2024, 1:03pm UTC](https://kopia.discourse.group/t/port-exhaustion-issues/1915/2 "2024-10-01T13:03:10Z")

</div>

This seems to be related to [Kopia(UI): Fails to close TCP connections and eventually causes unrelated processes to fail · Issue #2453 · kopia/kopia](https://github.com/kopia/kopia/issues/2453), which ought to be fixed in 0.16.1.

However, still I observe this issue occasionally, last time today. (macOS & repo via SFTP)

---

<div class="post-metadata">

**Author:** ![christoph](https://avatars.discourse-cdn.com/v4/letter/c/eb8c5e/32.png) [@christoph](https://kopia.discourse.group/u/christoph)\
**Post date:** [August 20, 2025, 6:14am UTC](https://kopia.discourse.group/t/port-exhaustion-issues/1915/3 "2025-08-20T06:14:57Z")

</div>

For the records, I haven’t observed this problem in a couple of months. I guess it can be considered as resolved.

---

<div class="post-metadata">

**Author:** ![officernickwilde](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/officernickwilde/32/342_2.png) [@officernickwilde](https://kopia.discourse.group/u/officernickwilde)\
**Post date:** [March 3, 2026, 6:40pm UTC](https://kopia.discourse.group/t/port-exhaustion-issues/1915/4 "2026-03-03T18:40:22Z")

</div>

I wouldnt be so sure about that 😅KopiaUI 0.22.3

 ![image](https://global.discourse-cdn.com/free1/uploads/kopia/original/2X/0/0f7eff4cc1dfb337e615edc41c12504e487682c7.png)
