Creating a web server in C# UWP

前端 未结 3 1168
臣服心动
臣服心动 2021-01-12 04:58

I am writing a web server as a Universal Windows Platform app in C#. Here is my code so far:

sealed partial class App : Application
    {
        int port =          


        
3条回答
  •  深忆病人
    2021-01-12 05:02

    Raymond Zuo's solution really works. But the main thing not to forget are capabilities in Packages.appxmanifest. In order to run the server in Private networks one should add:

    
    

    And in order to run the server in Public network:

    
    

提交回复
热议问题