Skip to content
Follow
Windows

How to Enable Networking in Windows 11 Sandbox

Richard
Written by
Richard
Nov 10, 2022 Updated Aug 13, 2026 3 min read
How to Lock and Unlock OneDrive Personal Vault in Windows 11
How to Lock and Unlock OneDrive Personal Vault in Windows 11

Networking in Windows 11 Sandbox turns on internet and local network access inside a safe, temporary desktop used for testing apps and visiting websites without risking your main computer.

Windows Sandbox blocks all internet connections by default to keep your system secure. You can easily switch networking on by adding a few lines of code to a configuration file that ends in the `.wsb` file format.

Turning on this feature helps you download setup files or test web pages directly inside the isolated desktop. Keep in mind that opening network access makes your temporary workspace slightly less secure.

⚡ Quick Answer

Enable networking in Windows 11 Sandbox by editing Group Policy, using a .wsb file, or modifying the Registry. Navigate to Computer Configuration Administrative Templates Windows Components Windows Sandbox and enable “Allow networking in Windows Sandbox” via Group Policy, or set 🗝️HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Sandbox\AllowNetworking to 1 in the Registry.

How to turn on or off networking with Sandbox in 🪟 Windows 11

Controlling internet access for a Windows Sandbox happens by turning networking on or off. Networking remains disabled by default for security, but administrators can change this setting when the Sandbox needs external connectivity. This guide details how to manage Sandbox networking.

Networking is turned off by default to keep your computer secure. Accessing the internet requires altering this configuration.

First, open the Local Group Policy Editor by clicking the Start Menu and searching for “Edit group policy.”

windows 11 edit group policy
windows 11 edit group policy

Once open, navigate through the left folder tree:

Computer Configuration > Administrative Templates > Windows Components > Windows Sandbox

Locate the setting named "Allow networking in Windows Sandbox" and double-click it.

windows 11 allow networking in windows sandbox
Windows 11 allow networking in windows Sandbox.

Select a preference from the available options:

  • Not Configured: The default setting (Networking is off).
  • Enabled: Allows the Sandbox to connect to the network.
  • Disabled: Explicitly turns off all networking.
windows 11 allow networking in windows sandbox options
windows 11 allows networking in windows sandbox options

Using a .wsb file to enable networking

A .wsb file ensures networking stays enabled every time Windows Sandbox starts. Creating a basic configuration file tells the Sandbox to allow internet access upon launch. This method provides consistent online access within the Sandbox.

💻Code
<Configuration>
  <Networking>Enable</Networking>
</Configuration>

Save the file with a .wsb extension (such as MySandbox.wsb). Double-clicking this file launches the Sandbox with networking enabled.

Enable or disable networking with Sandbox via Windows Registry

Enabling or disabling networking for Windows Sandbox via the Windows Registry offers an alternative when other methods fail. Modifying the registry requires navigating to a specific location and adjusting a key. Proceed with caution because incorrect registry edits can affect system stability.

Open the Windows Registry and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Sandbox. Creating the path manually is necessary if a folder named "Sandbox" does not appear under the Windows directory.

windows 11 enable disable printer sharing with sandbox registry
Windows 11 enables disabling printer sharing with the sandboxed registry

If a folder named "Sandbox" isn't there, right-click the "Windows" folder, select New, then Key, and name it "Sandbox."

Right-click any empty space on the right side of the window, select New, and choose DWORD (32-bit) Value (a standard numerical setting format used by the registry). Name this new value "AllowNetworking" to enable networking features within the Sandbox environment.

AllowNetworking, a DWORD value, controls internet access in Windows 11 Sandbox. Double-click AllowNetworking and change its "Value data" to 1. This turns networking on, allowing the Sandbox to connect to the internet. Change the "Value data" to 0 to turn networking off.

windows 11 allow networking to sandbox registry editor
Windows 11 allow networking to sandbox the registry editor

The Sandbox will now connect to external networks whenever this registry key is active.

Reference: Microsoft.com

Was this guide helpful?

Tags: #Windows 11
Was this helpful?
Richard

About the Author

Richard

Tech Writer, IT Professional

Richard, a writer for Geek Rewind, is a tech enthusiast who loves breaking down complex IT topics into simple, easy-to-understand ideas. With years of hands-on experience in system administration and enterprise IT operations, he’s developed a knack for offering practical tips and solutions. Richard aims to make technology more accessible and actionable. He's deeply committed to the Geek Rewind community, always ready to answer questions and engage in discussions.

📚 Related Tutorials

How to Enable or Disable Sharing Host Folders with Windows Sandbox in Windows 11
Windows How to Enable or Disable Sharing Host Folders with Windows Sandbox in Windows 11
How to Share Host Folders with Windows Sandbox in Windows 11
Windows How to Share Host Folders with Windows Sandbox in Windows 11
How to Enable or Disable Regedit in Windows 11
Windows How to Enable or Disable Regedit in Windows 11
How to Reset Group Policy Windows 11 to Default
Windows How to Reset Group Policy Windows 11 to Default

No comments yet — be the first to share your thoughts!

Leave a Comment

Your email address will not be published. Required fields are marked *