How to fix “Only one usage of each socket address (protocol/network address/port) is normally permitted. [WSAEADDRINUSE (0x2740)]” – Error Code 10048
Error Code 10048
Error code Error Code 10048 is a common Windows issue that typically arises from “Only one usage of each socket address (protocol/network address/port) is normally permitted. [WSAEADDRINUSE (0x2740)]”.
Overview
This article will guide you through resolving Error Code 10048 – “Only one usage of each socket address (protocol/network address/port) is normally permitted. [WSAEADDRINUSE (0x2740)]”. This error occurs when multiple processes attempt to use the same port, leading to system performance issues.
Identifying the Problem
Causes: Error Code 10048 is typically caused by:
- Conflicting applications using the same port
- Binding a port that is already in use
- Misconfigured network settings
Symptoms:
- Applications failing to start or connect
- Network connectivity issues
- System performance degradation
Common Fixes
1. Restart the System:
- Restarting your system can free up the port and resolve the error.
2. Check for Conflicting Applications:
- Determine which applications are using the conflicting port.
- Close or disable the applications that are not essential.
3. Use a Port Scanner:
- Use tools like TCPView or PortQry to identify the process using the conflicting port.
- End the process to free up the port.
4. Adjust Network Settings:
- Check your router or firewall settings to ensure that the required ports are open.
- Reassign the conflicting port to a different one in the network settings.
Advanced Troubleshooting
1. Modify the Windows Registry:
- Open the Registry Editor (regedit.exe).
- Navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters.
- Create a new DWORD value named “TcpTimedWaitDelay” and set its data to a higher value (e.g., 30000).
2. Reset the TCP/IP Stack:
- Open an elevated command prompt.
- Run the following commands:
netsh int ip reset
ipconfig /flushdns
- Restart your system.
Conclusion
Error Code 10048 can be resolved effectively by following the solutions outlined above. Restarting the system, identifying and closing conflicting applications, adjusting network settings, modifying the registry, or resetting the TCP/IP stack can help resolve the issue. To prevent future occurrences, it is advisable to use port management tools to monitor port usage and avoid conflicts.