[WPSL]代理服务器问题 [英] [WPSL]Proxy Server issue
问题描述
Hi Team
       这是Aravindan,担任Windows手机应用程序开发人员。我有一个关于环回代理服务器的问题。根据我的要求,我在Windows Phone 8上使用StreamSocketListener类创建了一个TCP Socket服务器,使用
LoopBack主机名(127.0.0.1)和端口是8016.I要求Tcp服务器在相同的主机名和端口上,服务器正在侦听并且它运行良好。如果我尝试通过编辑Lumia 520设备中的代理设置,因为代理服务器是127.0.0.01,端口是8016,带有Wifi
connection.so我尝试在设备上浏览IE浏览器,它没有浏览,如果我检查TCP服务器请求没有登陆服务器。请帮我这样做。
i热切地等待你的回复。
谢谢和问候阿拉文丹
嗨Aravindan ,
仍然不太了解你的场景,这是否意味着你开发了一个应用程序充当Windows Phone 8上的TCP套接字服务器,当应用程序处于活动状态时,然后浏览在IE中请求localhost,设置不起作用?
以下是您可能需要注意的一些潜在风险:
#1,有您是否考虑过应用程序生命周期?如果应用程序已停用并进入休眠状态,它是否仍会侦听TCP端口?有关详细信息,请参阅此内容:
Windows Phone 8的应用程序激活和停用
- James
Hi Team
This is Aravindan ,working as Windows phone app developer.I have one issue regarding loopback proxy server.According to my requirement I created one TCP Socket server on Windows phone 8 using StreamSocketListener Class with
LoopBack Hostname(127.0.0.1) and Port is 8016.I requested to Tcp server on Same Hostname and Port ,server is listeneing and it is working good.If I tried by editing Proxy setting in Lumia 520 device as Proxy server is 127.0.0.01 and Port is 8016 with Wifi
connection.so I tried to browse in IE on device ,it is not browsing as well as if i check on TCP Server Request is not landing on server.Please help me do this.
i am eagerly waiting for your reply.
Thanks and regardsAravindan
Hi Aravindan,
Still not quite understand your scenario, is that means you developed an app act as a TCP Socket server on Windows Phone 8 and when the app is active, but then browse in IE with request to localhost, the setting does not work?
Here are some potential risks you may need pay attention:
#1, Have you ever consider about the app life cycle? If the app is Deactivated and goes into a dormant state, will it still listen to the TCP port? See this for more information: App activation and deactivation for Windows Phone 8
--James
这篇关于[WPSL]代理服务器问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!