How to fix
Raw Socket error 10013
on Windows
Resolve Raw Socket error 10013 on Windows 10 and 11 effortlessly with our expert-tested solutions. Get back online in minutes, guaranteed!
What causes How to fix Raw Socket error 10013 in Windows?
- Firewall blocking socket connections
- Antivirus blocking needed socket connections
- Internet Connection Sharing Service causing port blocking
- Issues arising after Windows automatic update
Repairs Windows system files, removes malware, and restores a clean OS state — without reinstalling.
Hello, I have tried running IPconfig/renew command via elevated Command Prompt and I received an error which reads: Error: 1013, An attempt was made to access a socket in a way forbidden by its access permission. Please advise on how to resolve this, thank you.
Users have experienced the "An attempt was made to access a socket in a way forbidden by its access permissions" error (Raw socket error 10013) when attempting to execute ipconfig/renew command on CMD or upon commencement of an Apache server. All affected users reported that this issue arose after they installed Windows automatic update, suggesting that it could be responsible for the problem at hand.
The error code 10013 is generally due to a firewall or antivirus blocking needed socket connections. This presents itself as an unreachable port, resulting in the Raw Socket Error 10013 message. In order to resolve this issue and regain access, it is essential to identify & disable any problematic security software so that all ports are freely accessible. Disabling Firewall might be one of the solutions that could help you too.
In other cases, users also reported that they received the error whenever they were trying to use certain commands in Command Prompt when trying to resolve issues with network connections.
Enabling Internet Sharing opens up many protocols, such as HTTP, HTTPS, FTP, IMAP or others, to all computers on the network. However if a socket cannot be accessed due to port blocking issues then this can lead to difficulties. To fix Raw Socket Error 10013 error, you must disable the Internet Connection Sharing Service from your Service Manager.
We provide all the manual solutions for these particular problems below, although we strongly advise running a PC repair software [d1] in this situation, as there could be underlying Windows issues causing this problem, for example, damaged system files or corrupted files after malware removal.

Fix 1. Disable third-party antivirus
When you experience this issue, the first action to take is to determine if a third-party antivirus may be blocking certain ports used by your local host. An overprotective firewall can be the source of this error. To solve it, simply uninstall or disable third-party software such as Avast, AVG, Kaspersky, etc., and see whether that resolves the problem.
Fix 2. Disable Internet Connection Sharing
As mentioned, Connection Sharing Service could be one of the main reasons for the error 10013. To disable it, you need to access Services as follows:
- Type Services in Windows search and press Enter
- In the Services window, scroll down to locate Internet Connection Sharing (ICS) and double-click the entry
- Find the Startup type section
- Click on the drop-down menu and select Disabled.

Fix 3. Restart Internet Information Services (IIS)
Restarting IIS service will kill the Internet services and remove its related data, which can help you resolve the Raw Socket error 10013 error.
- Type cmd in Windows search
- Right-click on Command Prompt result and select Run as administrator
- When User Account Control (UAC) shows up, click Yes
- In the new window, copy and paste the following command, pressing Enter after:
iisreset - Wait for the command to be completed.

Fix 4. Temporarily disable Firewall
- Type in Control Panel in Windows search and press Enter
- Go to System and Security > Windows Defender Firewall
- Press Turn Windows Firewall On or Off option
- If required, enter your administrator password and press OK
- Then set Windows Firewall off of both private and public network
- Click OK to save the changes and close everything.

Fix 5. Try System Restore
You can return your machine in time before the problems began:
- Type in Create a Restore Point in Windows search and hit Enter
- Click System Restore
- Pick Choose a different restore point (if available) and click Next
- Mark the Show more restore points checkbox
- Select the point in time when the problem did not exist
- Click Next and Finish - your computer will restart.

Bottom line
To fix Raw Socket Error 10013, you should disable third-party antivirus software and the Internet Connection Sharing Service. Additionally, consider disabling the firewall if necessary. If these solutions do not resolve the issue, running a PC repair software may help address underlying Windows problems.
Frequently asked questions
Raw Socket error 10013 is typically caused by insufficient permissions or firewall settings that block access to raw sockets in Windows 10.
To fix Raw Socket error 10013 on Windows 11, you can try running your application as an administrator and adjusting your firewall settings to allow raw socket connections.
Yes, you can use the 'netsh' command in the Command Prompt to reset your network settings, which may help resolve Raw Socket error 10013 in Windows.




Report an issue
What's wrong with this guide? We review every report and update or remove content.
Report received — thank you. We'll review and fix it.
You need a free account to submit a report.
Be the first to comment