Connect to Windows app with WebRequest

2019-09-17 11:14发布

Is it possible for a windows mobile phone to use WebRequest to connect to a windows client application. I mean an actual windows forms application. I want to use webrequest but the client application cannot be a web app or anything, it has to be a windows forms program. So, is it possible?

Thanks

标签: c# webrequest
1条回答
时光不老,我们不散
2楼-- · 2019-09-17 12:15

Possible, yes. Easy, or a good idea for that matter, no.

If your WinForms app also opens up a Socket and listens for requests on port 80.

Essentially you have to build a web server into your WinForms application and then deal with firewall and security issues of the traffic getting from the Mobile Phone to the computer running your application.

查看更多
登录 后发表回答