From ed20d0627dd4f82b45b163ea570c0d7ba3316fcf Mon Sep 17 00:00:00 2001 From: MCDeltaT <68516357+MustardChef@users.noreply.github.com> Date: Thu, 18 May 2023 20:00:38 +0100 Subject: [PATCH] Create LocalHostLoopback.md --- Guides/LocalHostLoopback.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Guides/LocalHostLoopback.md diff --git a/Guides/LocalHostLoopback.md b/Guides/LocalHostLoopback.md new file mode 100644 index 0000000..203e8f5 --- /dev/null +++ b/Guides/LocalHostLoopback.md @@ -0,0 +1,18 @@ +# WSABuilds       +## Guide: LocalHost Loopback +#### Preface: You want to connect WSA to the localhost (Windows 11 hosting machine) or to a development server I run on Windows 11 or any such scenario where you would want to connect to the Windows 11 localhost, but are unable to + +## Process: + +**1.** Run PowerShell as administrator + +**2.** Execute +```powershell +Set-NetFirewallHyperVVMSetting -VMCreatorId '{9E288F02-CE00-4D9E-BE2B-14CE463B0298}' -LoopbackEnabled True +``` + +3.Execute +```powershell +New-NetFirewallHyperVRule -DisplayName LoopbackAllow -VMCreatorId '{9E288F02-CE00-4D9E-BE2B-14CE463B0298}' -Direction Inbound -Action Allow -LocalPorts [PORT] +``` +(replacing [PORT] with the port you're trying to expose)