使用 WebRequest 连接到 Windows 应用程序 [英] Connect to Windows app with WebRequest

查看:32
本文介绍了使用 WebRequest 连接到 Windows 应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

windows 手机是否可以使用 WebRequest 连接到 windows 客户端应用程序.我的意思是一个实际的 Windows 窗体应用程序.我想使用 webrequest 但客户端应用程序不能是 web 应用程序或任何东西,它必须是 windows 窗体程序.那么,有可能吗?

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?

谢谢

推荐答案

可能,是的.简单,或者就此而言是个好主意,不.

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

如果您的 WinForms 应用程序还打开一个 Socket 并侦听端口 80 上的请求.

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

本质上,您必须在 WinForms 应用程序中构建一个 Web 服务器,然后处理从手机到运行应用程序的计算机的流量的防火墙和安全问题.

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.

这篇关于使用 WebRequest 连接到 Windows 应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆