How to Enable Networking in Windows 11 Sandbox
Windows Sandbox is a built-in testing tool in Windows 11 that runs apps in a safe, temporary desktop. It blocks all internet and local network connections by default to protect your main computer.
You can turn on networking inside Windows Sandbox by adding a simple text configuration file with the .wsb file extension. This lets you download setup files, test web pages, or check network apps inside your isolated workspace.
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. Incorrect registry edits can cause system instability, so follow these steps carefully.
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. 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!