Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Found another Localhost HTTP Server Fix

3 views
Skip to first unread message

Ufdah

unread,
Feb 13, 2004, 1:26:08 PM2/13/04
to
I've been struggling with this problem for a while now and thought that I'd share what worked for me.
I thought I'd found the solution here:
http://groups.google.com/groups?q=PPC2003+PIE+will+not+connect+to+localhost&hl=en&lr=&ie=UTF-8&oe=UTF-8&selm=%23HNpjuBYDHA.3444%40tk2msftngp13.phx.gbl&rnum=5&filter=0

But after trying to get this to work multiple times it just wasn't working right. When I tried connection to http://localhost/ it would no longer say that it couldn't connect it would instead say 'this page can't be found'. So the null network was doing its job but localhost wasn't mapping to the server. However while in the device was in the cradel I noticed that 127.0.0.1 did connect to the server so I figured that if I could get 127.0.0.1 to work offline that would be just as good. All I did to make this work is change the address filter reference from *://localhost/* to *://127.0.0.1/* in the code below.

Here's a step by step on how I fixed it:
1) Copy the text below to a text file and name it "_setup.xml"
-------------------------------------------------
<wap-provisioningdoc><characteristic type="CM_Mappings"><characteristic type="536870911"><parm name="Pattern" value="*://127.0.0.1/*" /><parm name="Network" value="{e8e89f5a-d3bb-4c58-9b4e-08279d31044e}" /></characteristic></characteristic><characteristic type="Registry"><characteristic type="HKLM\Software\Microsoft\ConnMgr\Providers\{EF097F4C-DC4B-4c98-8FF6-AEF805DC0E8E}\localhost-null"><parm name="DestId" value="{e8e89f5a-d3bb-4c58-9b4e-08279d31044e}" datatype="string" /><parm name="Type" value="0" datatype="integer" /><parm name="Enable" value="1" datatype="integer" /></characteristic></characteristic></wap-provisioningdoc>
---------------------------------------------
Make sure that no lines are cut off halfway through with a carrige return line feed (enter key) in the text file.

2) Put the Makecab.exe file in the same folder as the *.cpf file and browse to that folder in DOS.
3) At the command prompt type: makecab /D COMPRESS=OFF _setup.xml HttpServerFix.cpf
4) Close the DOS window and copy the HttpServerFix.cpf file to the pocket pc.
5) Run the cpf file on the PocketPC (it will automatically delete the file if successfully run) and reset the device.
6) Now you should be able to access the server at 127.0.0.1 while offline.

All credit for this fix should be given to Randy and Jay from the Microsoft Windows Mobile Development team. I only made a very small change to get it to work for my situation.

Hope it works,
Ty

Ufdah

unread,
Feb 13, 2004, 1:46:08 PM2/13/04
to
***Fixed formatting from previous post.***
0 new messages