🚀 NEW in v2.4.29: 35+ Speed Optimizations added today!Download Now →

Home/Fix/Fix Error 0x8007003C — Network Connection Refused

How to Fix Fix Error 0x8007003C — Network Connection Refused on Windows

Getting error 0x8007003C when connecting to network resource? Connection refused error on shared folders? Network service rejecting connections? Remote access failing with this code? Fix this network connection refused error.

Symptoms

You might be experiencing this problem if you notice:

  • Accessing network share fails with 0x8007003C
  • Remote Desktop connection refused with this error
  • Network service connections rejected
  • File sharing between PCs fails with this code
  • VPN connection fails during authentication
  • Printer sharing returns connection refused error

Common Causes

  • Target computer's firewall blocking the connection
  • Network service not running on the target machine
  • SMB/network sharing not enabled on target
  • Windows Firewall rules blocking specific ports
  • Network discovery disabled on one or both machines
  • Credential mismatch between connecting machines

Solutions

Solution 1: Fix Firewall and Network Discovery

  1. 1On the TARGET machine (the one you're connecting to):
  2. 2Check Windows Firewall:
  3. 3Control Panel → Windows Defender Firewall
  4. 4Click "Allow an app through firewall"
  5. 5Ensure these are checked for Private network:
  6. 6File and Printer Sharing
  7. 7Network Discovery
  8. 8Core Networking
  9. 9Enable Network Discovery:
  10. 10Settings → Network & internet → Advanced network settings
  11. 11→ Advanced sharing settings
  12. 12Turn on Network Discovery and File Sharing
  13. 13Also on the SOURCE machine: ensure same settings enabled

Solution 2: Fix SMB Sharing Service

  1. 1Ensure file sharing services are running:
  2. 2On the target machine — services.msc:
  3. 3Server (LanmanServer) → Automatic → Start
  4. 4Workstation (LanmanWorkstation) → Automatic → Start
  5. 5TCP/IP NetBIOS Helper → Automatic → Start
  6. 6Function Discovery Resource Publication → Automatic → Start
  7. 7If services are running but still refused:
  8. 8Check if SMB is enabled:
  9. 9PowerShell: Get-SmbServerConfiguration | Select EnableSMB2Protocol
  10. 10If false: Set-SmbServerConfiguration -EnableSMB2Protocol $true
  11. 11Also verify the share exists:
  12. 12net share — lists all shares on the machine
  13. 13Ensure the share hasn't been removed

Solution 3: Fix Credential and Authentication Issues

  1. 1Connection refused can also mean authentication rejection:
  2. 2On the connecting machine:
  3. 3Control Panel → Credential Manager → Windows Credentials
  4. 4Remove any saved credentials for the target machine
  5. 5Click "Add a Windows credential" and enter correct credentials
  6. 6Use format: COMPUTERNAME\Username or username@domain
  7. 7Check password-protected sharing on target:
  8. 8Advanced sharing settings → Turn off password protected sharing
  9. 9Or ensure you have a valid account on the target machine
  10. 10For workgroup (non-domain) networks:
  11. 11Both machines should use same workgroup name
  12. 12Check: Settings → System → About → Rename this PC (advanced)
  13. 13Default workgroup is WORKGROUP
FIXES THIS IN 5 MINUTES

Fix Fix Error 0x8007003C — Network Connection Refused Automatically

RescuePC Toolkit includes 109+ automated repairs that fix this problem with one click. No command line knowledge required.

Download Now - Free Trial

No credit card required • Works on Windows 10 & 11

Automated Repairs for This Issue

Browse More Network & Internet Guides

Share this:XRedditLinkedInEmail