DEV Community

TechFixDocs
TechFixDocs

Posted on • Originally published at techfixdocs.my.id

How to Fix: Tcpip error: Request failed due to all such ports being in use

TCP/IP error: Request failed due to all such ports being in use, DNScache listed thousands of times.

The Problem

The TCP/IP error 'Request failed due to all such ports being in use' affects users who are unable to access the internet or connect to external resources. This issue can be frustrating, especially if you rely on DNS-based services like Pidgin for communication.Despite being able to access local network resources and some external resources, this error prevents users from fully utilizing their internet connection.
⚠️ Common Causes

                The primary reason for this error is that the Windows system has exhausted all available ephemeral ports in the global UDP port space. This can happen when many applications are using DNS-based services simultaneously, causing an overload on the system's resources.Another possible cause could be a malware or virus infection that consumes system resources and prevents the system from allocating new ports for DNS resolution.

            🚀 How to Resolve This Issue

                Resetting TCP/IP Stack

                    Step 1: Restart your computer to clear any temporary issues with the TCP/IP stack.Step 2: Open Command Prompt as administrator and run the command `netsh int ip reset` to reset the TCP/IP stack.Step 3: Run the command `ipconfig /release` followed by `ipconfig /renew` to release and renew the IP address.



                Clearing DNS Cache

                    Step 1: Open Command Prompt as administrator and run the command `netsh winsock reset` to reset the Winsock settings.Step 2: Run the command `ipconfig /flushdns` to clear the DNS cache.


            🎯 Final Words
            To resolve this issue, try resetting the TCP/IP stack or clearing the DNS cache. If the problem persists, consider performing a System File Checker scan and running a full virus scan to ensure your system is free from malware. Additionally, it may be helpful to check for any software updates that could address this issue.
Enter fullscreen mode Exit fullscreen mode

Full step-by-step guide with screenshots: Read the complete fix here

Found this helpful? Check out more verified tech fixes at TechFixDocs

Top comments (0)