Some Windows 10 users are facing a curious issue: The internet connection fails once a day – and isn’t revocable. Inspecting event protocol shows entries with ID 4231 and 4227.
I stumbled upon this issue within this German Microsoft Answers forum thread, where a user describes the scenario. He looses once a day internet connection, although the network icon within the status bar shows a connection. First he was able to fix that issue with a re-boot. Later on he was forced to reset the network. He has changed the network card without an improvement. Searching the web brought me to this English Technet-forum discussion, where the same issue has been observed with Windows Server 2012:
Sometimes the server becomes inaccessible no network access anymore with 2 events:
TCP/IP failed to establish an outgoing connection because the selected local endpoint was recently used to connect to the same remote endpoint. This error typically occurs when outgoing connections are opened and closed at a high rate, causing all available local ports to be used and forcing TCP/IP to reuse a local port for an outgoing connection. To minimize the risk of data corruption, the TCP/IP standard requires a minimum time period to elapse between successive connections from a given local endpoint to a given remote endpoint.
A request to allocate an ephemeral port number from the global TCP port space has failed due to all such ports being in use.
Is there any way to resolve this? In previous version of windows server there was some registry entry for the tcpip parameters but they don’t seem to exists anymore.
Someone suggested the following workaround to avoid the exhausted TCP/IP connections.
1. Launch registry editor regedit.exe via Run as administrator.
2. Change the following registry entries.
Navigate to branch:
and set the value TcpTimedWaitDelay to 30 seconds. Then navigate to:
and set MaxUserPorts to 65,500. If the subkeys or the values are msising, just create them within registry editor. More details about the values mentioned above may be found at this Technet document.
Windows 10 Wiki
Check and repair Windows system files and component store
Windows 10: Open command prompt window as administrator
Windows 10 V1607: Update KB3206632 and the “no IP” fix – my findings
Cookies helps to fund this blog: Cookie settings