Why does the UWP app disable the loopback network by default?

Xie Steven 656 Reputation points
2023-01-11T06:12:05.3166667+00:00

Hi Guys,

I'm developing the UWP app for sideloading. The app will request the localhost ap server. When my customers install the app for the first time, they do not known enable the network loopback, then app always send http request timeout.

Why does the UWP app disable the loopback network by default?

Thanks,

Steven

Universal Windows Platform (UWP)
No comments
{count} votes

Accepted answer
  1. Roy Li - MSFT 26,556 Reputation points Microsoft Employee
    2023-01-11T08:10:09.44+00:00

    Hello,

    Welcome to Microsoft Q&A!

    Why does the UWP app disable the loopback network by default?

    In short, the reason is the security concern.

    Loopback is the process of communicating with a network server listening on localhost (the loopback address).

    To maintain security and network isolation, loopback connections for IPC are blocked by default for packaged applications.

    You could find more information here: UWP- Interprocess communication (IPC)

    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][2] to enable e-mail notifications if you want to receive the related email notification for this thread.

    No comments

0 additional answers

Sort by: Most helpful