简体   繁体   English

在模拟器上部署的WP 7应用程序和桌面应用程序之间进行通信

[英]Communicating between WP 7 Application deployed on a emulator and a desktop application

Currently I have a server which uses the TcpListener class to communicate with clients. 当前,我有一台使用TcpListener类与客户端进行通信的服务器。 I have to test the communication between the Windows Phone client app and the server. 我必须测试Windows Phone客户端应用程序与服务器之间的通信。

The problem is while developing my server is listening the IPAdress.Loopback (localhost) on my machine. 问题是在开发服务器时正在侦听我的计算机上的IPAdress.Loopback (localhost)。

Is there any way to create connection to the server from the emulator, so I can test anything. 有什么方法可以从模拟器创建到服务器的连接,所以我可以测试任何东西。

Well if I remember rightly you need to setup a port on your TCPListener, if that port is the same as the port VS is listening on then we will have a problem, the article below explains in good detail how to set up proper connections using TCPListener 好吧,如果我没记错的话,您需要在TCPListener上设置一个端口,如果该端口与VS正在侦听的端口相同,那么我们将遇到问题,下面的文章详细介绍了如何使用TCPListener设置正确的连接

http://msdn.microsoft.com/en-us/library/system.net.sockets.tcplistener.aspx http://msdn.microsoft.com/zh-cn/library/system.net.sockets.tcplistener.aspx

you could just set up a laptop with your server/client on and have your emulator connect to the private network addess of that machine then you can test otherwise I would normally fire up a Virtual Machine on my Desktop and connect to it for testing Server/client stuff 您只需在服务器/客户端打开的情况下设置一台笔记本电脑,并将仿真器连接到该计算机的专用网络地址,然后进行测试,否则我通常会在台式机上启动虚拟机并连接到该服务器以测试服务器/客户的东西

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

相关问题 在SERVICE和Web /桌面应用程序之间进行通信 - Communicating between SERVICE and web/desktop application 在桌面应用程序和Web应用程序之间是可能的 - is sso posible between Desktop application and web application apache网页和mono应用程序之间通信的框架 - framework for communicating between apache web page and mono application 在旧tcp IP服务器和WCF应用程序之间进行通信 - Communicating between legacy tcp IP server and WCF application 桌面应用程序与服务器之间的套接字通信 - Socket communication between desktop application and server .Net桌面应用程序和ASP.NET Web应用程序之间的通信 - Communication between .Net Desktop Application and ASP.NET Web application Web应用程序与桌面应用程序之间的双向通信 - Two-way communication between web application and desktop application SAAS / Cloud Web应用程序和桌面应用程序之间的共享身份验证 - Shared Authentication between SAAS/Cloud web application and Desktop application .Net桌面应用程序和浏览器中的Silverlight应用程序之间的通信 - Communication between a .Net desktop application and a Silverlight application in browser 向应用层传达并发冲突 - Communicating Concurrency Conflicts to the Application Layer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM