Opera Mobile 10 on Windows Mobile 6.5 cannot connect to localhost when offline

Forums » Opera for mobiles/devices » Opera Mobile for Windows Mobile

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

28. February 2012, 00:28:22

evsnm

Posts: 2

Opera Mobile 10 on Windows Mobile 6.5 cannot connect to localhost when offline

I'm working on a project that requires Opera Mobile 10, running on a Windows Mobile 6.5 Professional platform (Motorola MC9500), to send AJAX (HTTP) requests locally to a compact PHP server installed on the same device. A requirement is that the Opera Mobile browser must be able to connect to the local PHP server on the device when it is offline, i.e., no network connection. Use in the field will involve periods of no connectivity.

When there is network connectivity, Opera Mobile 10 can connect to the local PHP server on port 9000 with HTTP requests, i.e., "http://localhost:9000/" or "http://127.0.0.1:9000/". This all works fine when the device has a network connection. However, when the device loses connectivity, I can no longer connect to the server on the device even though it's only a local connection (no internet required). If I browse directly to "http://localhost:9000/" or "http://127.0.0.1:9000/" while there is no network connection, I get an error like the following:

You tried to access the address http://localhost:9000/, which is currently unavailable...


A Motorola support person gave me the following registry settings which fixed the problem for IE Mobile:

[HKEY_LOCAL_MACHINE\Comm\ConnMgr\Providers\{EF097F4C-DC4B-4C98-8FF6-AEF805DC0E8E}\localhost-null]
"DestId"="{E8E89F5A-D3BB-4C58-9B4E-08279D31044E}"
"Type"=dword:00000000
"Enable"=dword:00000001

[HKEY_LOCAL_MACHINE\Security\Internet Explorer]
"MSHTML"=dword:00000000


However, I must use Opera Mobile 10 for this project (it implements needed JavaScript and canvas functionality).

Does anyone know the corresponding registry setting for Opera Mobile 10? Or can infer a fix for Opera given the above information?

Thanks.

Forums » Opera for mobiles/devices » Opera Mobile for Windows Mobile