ACTIVE MALWARE WINDOWS

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!

How to fix Raw Socket error 10013 in Windows?
Quick Summary
Error severity
Medium
Est. time
10 minutes
Offer Fortect PC Suite
Start fix →
Ad · we may earn a commission
0 Comments
01

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
Offer Fortect PC Suite

Repairs Windows system files, removes malware, and restores a clean OS state — without reinstalling.

Ad · we may earn a commission
Get Fortect PC Suite ↗

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.

How to fix raw socket error 10013 in windows
How to fix raw socket error 10013 in windows

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.

How to fix raw socket error 10013 in windows disable internet connection sharing service
How to fix raw socket error 10013 in windows disable internet connection sharing service

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.

How to fix raw socket error 10013 in windows reset iis
How to fix raw socket error 10013 in windows reset iis

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.

How to fix raw socket error 10013 in windows disable firewall
How to fix raw socket error 10013 in windows disable firewall

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.

How to fix raw socket error 10013 in windows system restore
How to fix raw socket error 10013 in windows system restore

 

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.

Did this fix work for you?
Gabriel E. Hall

Written & verified by

Malware Removal Expert
Malware removal Ransomware recovery Browser hijackers Spyware analysis Security tools testing

Gabriel E. Hall is a malware removal expert and cybersecurity researcher with over ten years of hands-on experience analysing threats and writing removal guides. She has documented hundreds of malware families — from browser hijackers and adware to ransomware and rootkits — providing step-by-step cleanup instructions tested against real infections. Gabriel's work combines deep technical analysis with clear, actionable language that readers without a security background can follow. Her guides consistently appear among the most-referenced resources for malware removal on Windows systems.

0 Comments

Be the first to comment

Still worried? Run a free check.

Paste any URL or domain — we'll scan it against 4.2M known threats in 10 seconds.

View full scanner → Add to your website →