Working around the Network Loopback Isolation of UWP Apps












1















I've been hitting a blockage trying to get my UWP App to receive data from a local UDP port in the following scenario:




  • Windows 10 | Version 10.0.16299 Build 16299

  • UWP target and minimum Version 10.0.16299

  • Declared capabilities :


    • Internet (Client & Server)

    • Internet (Client)



  • UdpClient listening on 127.0.0.1:1234

  • Tested on two different systems in different networks with the same resulting behaviour




I am aware of the CheckNetIsolation tool and already tried the following steps multiple times:




  • Ensuring that the App is registered while running with CheckNetIsolation loopbackexempt -s

  • Clearing all exemptions with CheckNetIsolation loopbackexempt -c and manually adding the App with CheckNetIsolation loopbackexempt -a -n=*Package Family Name*

  • Running the App while all restrictions are cleared with CheckNetIsolation loopbackexempt -c


I am running my App from Visual Studio, awaiting for UdpClient.ReceiveAsync() to return something in a while loop.



My code works fine when i use it from a .Net Framework 4.7.2 Console App, so i can exclude any errors interfering on that end.





The only thing that lets me receive data in my UWP App is running CheckNetIsolation loopbackexempt -is -n=*Package Family Name*. As soon as i stop it from running, my UDP client stops receiving aata.





Sadly, the solution i found and other tools that redirect communication so that they appear to be sent by another source are not possible due to different contraints.










share|improve this question



























    1















    I've been hitting a blockage trying to get my UWP App to receive data from a local UDP port in the following scenario:




    • Windows 10 | Version 10.0.16299 Build 16299

    • UWP target and minimum Version 10.0.16299

    • Declared capabilities :


      • Internet (Client & Server)

      • Internet (Client)



    • UdpClient listening on 127.0.0.1:1234

    • Tested on two different systems in different networks with the same resulting behaviour




    I am aware of the CheckNetIsolation tool and already tried the following steps multiple times:




    • Ensuring that the App is registered while running with CheckNetIsolation loopbackexempt -s

    • Clearing all exemptions with CheckNetIsolation loopbackexempt -c and manually adding the App with CheckNetIsolation loopbackexempt -a -n=*Package Family Name*

    • Running the App while all restrictions are cleared with CheckNetIsolation loopbackexempt -c


    I am running my App from Visual Studio, awaiting for UdpClient.ReceiveAsync() to return something in a while loop.



    My code works fine when i use it from a .Net Framework 4.7.2 Console App, so i can exclude any errors interfering on that end.





    The only thing that lets me receive data in my UWP App is running CheckNetIsolation loopbackexempt -is -n=*Package Family Name*. As soon as i stop it from running, my UDP client stops receiving aata.





    Sadly, the solution i found and other tools that redirect communication so that they appear to be sent by another source are not possible due to different contraints.










    share|improve this question

























      1












      1








      1








      I've been hitting a blockage trying to get my UWP App to receive data from a local UDP port in the following scenario:




      • Windows 10 | Version 10.0.16299 Build 16299

      • UWP target and minimum Version 10.0.16299

      • Declared capabilities :


        • Internet (Client & Server)

        • Internet (Client)



      • UdpClient listening on 127.0.0.1:1234

      • Tested on two different systems in different networks with the same resulting behaviour




      I am aware of the CheckNetIsolation tool and already tried the following steps multiple times:




      • Ensuring that the App is registered while running with CheckNetIsolation loopbackexempt -s

      • Clearing all exemptions with CheckNetIsolation loopbackexempt -c and manually adding the App with CheckNetIsolation loopbackexempt -a -n=*Package Family Name*

      • Running the App while all restrictions are cleared with CheckNetIsolation loopbackexempt -c


      I am running my App from Visual Studio, awaiting for UdpClient.ReceiveAsync() to return something in a while loop.



      My code works fine when i use it from a .Net Framework 4.7.2 Console App, so i can exclude any errors interfering on that end.





      The only thing that lets me receive data in my UWP App is running CheckNetIsolation loopbackexempt -is -n=*Package Family Name*. As soon as i stop it from running, my UDP client stops receiving aata.





      Sadly, the solution i found and other tools that redirect communication so that they appear to be sent by another source are not possible due to different contraints.










      share|improve this question














      I've been hitting a blockage trying to get my UWP App to receive data from a local UDP port in the following scenario:




      • Windows 10 | Version 10.0.16299 Build 16299

      • UWP target and minimum Version 10.0.16299

      • Declared capabilities :


        • Internet (Client & Server)

        • Internet (Client)



      • UdpClient listening on 127.0.0.1:1234

      • Tested on two different systems in different networks with the same resulting behaviour




      I am aware of the CheckNetIsolation tool and already tried the following steps multiple times:




      • Ensuring that the App is registered while running with CheckNetIsolation loopbackexempt -s

      • Clearing all exemptions with CheckNetIsolation loopbackexempt -c and manually adding the App with CheckNetIsolation loopbackexempt -a -n=*Package Family Name*

      • Running the App while all restrictions are cleared with CheckNetIsolation loopbackexempt -c


      I am running my App from Visual Studio, awaiting for UdpClient.ReceiveAsync() to return something in a while loop.



      My code works fine when i use it from a .Net Framework 4.7.2 Console App, so i can exclude any errors interfering on that end.





      The only thing that lets me receive data in my UWP App is running CheckNetIsolation loopbackexempt -is -n=*Package Family Name*. As soon as i stop it from running, my UDP client stops receiving aata.





      Sadly, the solution i found and other tools that redirect communication so that they appear to be sent by another source are not possible due to different contraints.







      networking windows-10 udp loopback uwp






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 22 at 14:12









      CoresualCoresual

      62




      62






















          0






          active

          oldest

          votes











          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "3"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1408502%2fworking-around-the-network-loopback-isolation-of-uwp-apps%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Super User!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1408502%2fworking-around-the-network-loopback-isolation-of-uwp-apps%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          How do I know what Microsoft account the skydrive app is syncing to?

          When does type information flow backwards in C++?

          Grease: Live!