A Microsoft platform for building and publishing apps for Windows devices.
Hello,
Welcome to Microsoft Q&A!
UWP apps are running in the sandbox so it is isolated from the real system. To maintain security and network isolation, loopback connections for IPC are blocked by default for packaged applications. You need to enable the local loopback for the UWP app so that it could communicate with localhost.
To enable loopback use this command:
c:\>checknetisolation loopbackexempt -a -n=<package family name>
To disable loopback use this command:
c:\>checknetisolation loopbackexempt -d -n=<package family name>
You could refer to these document for more information: Interprocess communication (IPC) and Enabling loopback for a UWP application
Thank you.
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.