Home >Database >Mysql Tutorial >How to Fix '[2002] Only One Usage of Each Socket Address' Error in Windows?

How to Fix '[2002] Only One Usage of Each Socket Address' Error in Windows?

Susan Sarandon
Susan SarandonOriginal
2024-11-09 19:54:02808browse

How to Fix

MySQL/PHP Error: Resolving “[2002] Only One Usage of Each Socket Address” for Windows

The error "[2002] Only one usage of each socket address (protocol/network address/port) is normally permitted" indicates a limitation in the Windows operating system, preventing multiple connections using the same socket address. To resolve this issue, you can modify the following registry values:

  1. Open the Registry Editor (regedit.exe).
  2. Navigate to the following path:

    HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
  3. Create four new DWORD (32-bit) values with the following names and hex values:

    Registry Value Hex Value
    TcpTimedWaitDelay 0000001e
    MaxUserPort 0000fffe
    TcpNumConnections 00fffffe
    TcpMaxDataRetransmissions 00000005
  4. Save your changes and close the Registry Editor.

This registry modification should resolve the issue by increasing the number of available socket connections and reconfiguring network settings. After making these changes, restart Apache and observe whether the error persists.

The above is the detailed content of How to Fix '[2002] Only One Usage of Each Socket Address' Error in Windows?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn