Windows CE Networking Team WebLog

Windows CE Networking - from NDIS to TCP to SOAP to VOIP and everything in between.

Connecting to http://localhost/ from your PocketPC

When running Pocket IE (PIE) on a PocketPC, in versions PPC 2000 and PPC 2003 to open up http://localhost/ to open a web server running on the device you needed to do some workarounds first.  The problem was in PIE itself, and not the Microsoft web server, so it didn't matter what underlying web server you were trying to connect to.  Note that this worked fine in PPC 2002.

This has been fixed in PocketPC 2005 with one minor caveat.  Opening up http://localhost/ from the browser works just fine.  Opening up http://127.0.0.1/ however will not work, again due to a browser problem.  We'll hopefully get this fixed in the next major release.  For now just use http://localhost/.

As a footnote, in PocketPC 2005 PIE has been rebranded "IE Mobile".

[Author: John Spaith]

Published Monday, June 06, 2005 3:50 PM by cenet
Filed under:

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

 

Roopak said:

John,
on WM5, http://localhost does work, but ONLY when the device is cradled to the computer, if it is not, it doesnt work!!
December 13, 2005 5:37 PM
 

maverick said:

i really hate this kind of MS strategy. this localhost (loopback address) problem in PIE had already caused several compatibility problems. MS has to change its strategy when it comes to mobile as mobile devices can't be just easily patched!!!
March 28, 2006 10:43 AM
 

Stephan said:

That is very frustated for me!!
We are developing an application that runs a local TCP proxy on the device.
We want ActiveSync to connect to this local TCP port (80 or 443) so we get the AS data.
When Pocket PC is cradled and we use work network connection then it works,
AS will connect to localhost. But when we use GPRS connection and internet network
then AS failes to connect. WHY??? PIE can connect to localhost with internet connection
but why AS can not?
Is there a fix like that for PPC 2003 with the CM_Mapping and registry entries?
Please can someone help?
April 12, 2006 4:03 AM

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required
Submit

© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Microsoft
Page view tracker