简体   繁体   English

使用WebRequest连接到Windows应用

[英]Connect to Windows app with WebRequest

Is it possible for a windows mobile phone to use WebRequest to connect to a windows client application. Windows移动电话是否可以使用WebRequest连接到Windows客户端应用程序。 I mean an actual windows forms application. 我的意思是一个实际的Windows窗体应用程序。 I want to use webrequest but the client application cannot be a web app or anything, it has to be a windows forms program. 我想使用webrequest,但客户端应用程序不能是Web应用程序或其他任何东西,它必须是Windows Forms程序。 So, is it possible? 那么,有可能吗?

Thanks 谢谢

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. 如果您的WinForms应用程序还打开了一个Socket,并在端口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. 本质上,您必须将Web服务器构建到WinForms应用程序中,然后处理从移动电话到运行应用程序的计算机的通信的防火墙和安全性问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM