Name Resolution

I'm really newbye on Device Emulator.

That's my problem: I have to use ActiveSync with a server for what i cannot have a certificate. I would like to us local PC host file to map "server.domain.com" to another IP address so that the certificate I have for "server.domain.com" could be used for that Sync.

I don't know if the certificate will function well, but my first problem is: how does the Device Emulatro resolve network names

If I map "server.domain.com" to an unused IP address with the host file, the Device Emulator still go to the original "server.domain.com".

Does anybody know something about that



Answer this question

Name Resolution

  • kmhawkes

    To do this, add a subkey to HKEY_LOCAL_MACHINE\Comm\Tcpip\Hosts for each machine name that must be resolved, then add binary values for the IP address and expiration time. The following code shows a registry export of a key entry that will resolve the name "stargate" to IP address 199.188.177.66:

    [HKEY_LOCAL_MACHINE\Comm\Tcpip\Hosts\stargate]
    "ipaddr"=hex:\
       c7,bc,b1,42
    "ExpireTime"=hex:\
       99,99,99,99,99,99,99

    ---
    Lao K
    Visit my Blog for Windows Mobile Pocket PC Smartphone Programming Hints and Tips



  • Bhuvaneshwari K

    Hello,

    Device Emulator appears as a separate PC on the network. It's name resolution works in the same way it will work for your PC.

    -Thanks,

    Mohit


  • stack

    I did a quick search on the net for "pocketpc hosts file" and discovered that PocketPC does not have the concept of a HOSTS file. There are multiple freeware applications which give PocketPC devices similar functionality though.

    Barry


  • YAYASOFT

    Thanks for the answer, but if the name resolution works in the same way, how can I use an host file to map a network name to an IP address (I can do it in the host file for the PC, but it is not used by the Device Emulator)
  • RayMan55

    Thanks to all for the aswers!

    @ Lao K:

    There is no any key "Comm" under HKEY_LOCAL_MACHINE... I also tried to search it in the entiere registry, but there's no trace of it..

    Could you be more specific please

    Thanks a lot!


  • ping0506

    What emulator are you using: OS, name listed in Emulator Manager  

    "Comm" typically is the first subkey under HKEY_LOCAL_MACHINE. Read here: /etc/hosts file equivalent in Windows Mobile device

    ---
    Lao K
    Visit my Blog for Windows Mobile Pocket PC Smartphone Programming Hints and Tips



  • Name Resolution