How to Enable Networking in Windows 11 Sandbox
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.
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\
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.”

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.

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.

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.
<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.

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.

The Sandbox will now connect to external networks whenever this registry key is active.
Reference: Microsoft.com
Was this guide helpful?
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.
No comments yet — be the first to share your thoughts!