Reputation: 1229
According to the Note in this article we cannot communicate between 2 UWP apps in the same machine using sockets. https://learn.microsoft.com/en-us/windows/uwp/networking/sockets
I want to know whether that restriction is only for 2 UWP apps or even if I want to connect to a non UWP app (a .net app or a Windows app) from the UWP app, it'll not be allowed?
I just ran a sample .net socket server and a UWP client in the same machine and they seems to work. But I want to know whether this will work when the UWP app is submitted to Store. In some forums I have read that certain features will work in Visual studio. But not in Store version.
Even when I created a side loaded package and tested, it seems to work. So I want to confirm there is no restriction to use sockets between a UWP client and a .net server running in the same machine, before I start implementing it.
Upvotes: 0
Views: 761
Reputation: 8666
Generally speaking, UWP apps are running in the sandbox and they will block localhost requests because of the network isolation. And a common way we used to implement communication between UWP and Non-UWP apps is using App service.
Here is the sample about how to using app service between them:AppService Bridge Sample
Upvotes: 1