Connect to Windows app with WebRequest

纵然是瞬间 提交于 2019-12-11 16:41:35

问题


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


回答1:


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.



来源:https://stackoverflow.com/questions/3143075/connect-to-windows-app-with-webrequest

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!