×

Discussion Board

Results 1 to 10 of 10
  1. #1
    Registered User
    Join Date
    Sep 2013
    Posts
    4

    access OpenERP localhost from Windows Phone emulator

    Hello everyone,

    Installed OpenERP v7 with the All in one installer in a Windows 8 x64, works perfectly from localhost:8069 but cannot access it from Windows Phone 8 emulator:

    I add an inbound rule (System and Security > Windows Firewall > Advanced settings)
    I totally opened the server to the Internet and all other services are accessibl

    Any config missing?
    Thanks for the help.

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    427

    Re: access OpenERP localhost from Windows Phone emulator

    Can you access the OpenERP server from a real device on your local network or from another PC on your network? It might be that your server is only listening on the loopback interface.

  3. #3
    Nokia Developer Champion
    Join Date
    Feb 2013
    Location
    Dublin, Ireland
    Posts
    477

    Re: access OpenERP localhost from Windows Phone emulator

    The Windows Phone 8 emulator runs in its own Virtual Machine which is why localhost doesn't work - Windows 8 and the WP8 emulator are on different networks, essentially.

    But with a few tweaks, you can make the two talk...

    http://msdn.microsoft.com/en-us/libr...v=vs.105).aspx

  4. #4
    Registered User
    Join Date
    Sep 2013
    Posts
    4

    Re: access OpenERP localhost from Windows Phone emulator

    Je suis entrain de réaliser une application client/serveur entre serveur OpenERP et client Windows phone en utilisant XML-RPC comme protocole d'échange, j'arrive pas a faire la connexion entre eux . ma question avez vous une documentation sur comment utiliser XML-RPC sous Windows Phone 7/8 pour se connecter à openERP? Merci d'avance
    Last edited by Adnane DALHI; 2013-09-17 at 17:46.

  5. #5
    Nokia Developer Champion
    Join Date
    Feb 2013
    Location
    Dublin, Ireland
    Posts
    477

    Re: access OpenERP localhost from Windows Phone emulator

    If you're working with XML-RPC, then I would try http://xml-rpc.net/. It's an older library but it is supposed to work with WP7 (and therefore should work with WP8 as well).

    It's also available on NuGet (http://www.nuget.org/packages/xmlrpcnet/). In case you haven't used it, NuGet is a package manager which makes adding and updating add-ons very easy.

  6. #6
    Nokia Developer Champion
    Join Date
    Sep 2012
    Location
    Morocco
    Posts
    292

    Re: access OpenERP localhost from Windows Phone emulator

    Quote Originally Posted by Adnane DALHI View Post
    Hello everyone,

    Installed OpenERP v7 with the All in one installer in a Windows 8 x64, works perfectly from localhost:8069 but cannot access it from Windows Phone 8 emulator:
    As theothernt stated the WP8 emulator runs in its own VM so using "localhost:8069" won't work you will need the full address like "127.0.01:8069", you should check which one is configured for your server.

    hope it helps,
    Yassine

  7. #7
    Registered User
    Join Date
    Sep 2013
    Posts
    4

    Re: access OpenERP localhost from Windows Phone emulator

    Quote Originally Posted by Loukt View Post
    As theothernt stated the WP8 emulator runs in its own VM so using "localhost:8069" won't work you will need the full address like "127.0.01:8069", you should check which one is configured for your server.

    hope it helps,
    Yassine
    thank you Loukt .
    but it works only when i want to access to local website using (ip adress : port)
    not with (localhost/127.0.0.1) to access OpenERP

  8. #8
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    427

    Re: access OpenERP localhost from Windows Phone emulator

    The emulator is seen as it's own device so both the name localhost and the loopback address 127.0.0.1 (localhost in DNS is resolved to 127.0.0.1 anyway) will make the emulated device contact itself so it won't be able to access a server there. You will have to direct the phone to contact that server on the server's local ip address (the one you'll see when you open the command line in windows and enter "ipconfig /all".

  9. #9
    Registered User
    Join Date
    Sep 2013
    Posts
    4

    Re: access OpenERP localhost from Windows Phone emulator

    Finally it's work Thank you all

  10. #10
    Nokia Developer Champion
    Join Date
    Mar 2013
    Posts
    427

    Re: access OpenERP localhost from Windows Phone emulator

    Can you tell us what the problem was in the end? Others might benefit from your solution. I'm happy to hear that it's working for you now.

Similar Threads

  1. Access back key Windows Phone 8 in HTML5
    By SyApril Studio in forum Windows Phone General
    Replies: 1
    Last Post: 2013-03-27, 21:40
  2. Replies: 14
    Last Post: 2013-03-18, 22:41
  3. Remote Device Access for Windows phone
    By karanala in forum Windows Phone General
    Replies: 1
    Last Post: 2012-02-10, 08:22
  4. Windows Phone and Access to Filesystem
    By mimuurin in forum Windows Phone General
    Replies: 14
    Last Post: 2011-07-20, 06:22
  5. Replies: 1
    Last Post: 2010-07-25, 09:42

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •