Home >Database >Mysql Tutorial >How to Fix '[2002] Only One Usage of Each Socket Address' Error in Windows?
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:
Navigate to the following path:
HKLM\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
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 |
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!