That's the way I'd guess is right, but you should try Work and see if that
makes any difference.
Paul T.
"Erin Defosse" <> wrote in message
news:C8CAE5B4-B571-4458-83F5-...
> It is set up as "The Internet".
>
> -Erin
>
> "Paul G. Tobey [eMVP]" wrote:
>
>> I made mention of changing whether the PC is set up as Work or The
>> Internet...
>>
>> Paul T.
>>
>> "Erin Defosse" <> wrote in message
>> news:5BE3B891-A21C-47C3-963F-...
>> > Thanks for the reply Paul.
>> >
>> > The name I'm trying to resolve is XYZ. Unfortunately using the hosts
>> > file
>> > on the PC is something we want to avoid because that would require us
>> > to
>> > change the host file on the PC if the IP address of XYZ changes and
>> > that
>> > would require our users to either do it manually or run a small utility
>> > that
>> > we would provide them to do this.
>> >
>> > The way our WM5.0 app works right now is that every time it starts it
>> > resolves an abc.com and gets an IP address. It then writes that IP
>> > address
>> > into the registry under the name XYZ. From then on the app uses XYZ
>> > when
>> > performing network connections. This allows us to change the IP
>> > address
>> > of
>> > the server without any mods on the mobile or the PC. This works like a
>> > charm
>> > when the mobile is connected to the Internet via Wi-Fi or cellular
>> > connection
>> > but when we connect the mobile to the PC via ActiveSync the app fails
>> > to
>> > connect because it can't resolve XYZ unless, as you point out, we put
>> > XYZ
>> > on
>> > the PC's host file. But we want to avoid that.
>> >
>> > NOTE: The reason we need to have the app use the name XYZ has to do
>> > with a
>> > subtlety in the way SQL Server works (the server at the IP address is a
>> > SQL
>> > Server) in the environment we are in and can't change that. Our app
>> > needs
>> > to
>> > sync with SQL Server. I could go into details on this but for now that
>> > is
>> > simply the way we have to do it.
>> >
>> > Any additional thoughts? One concept we toyed with is having an app on
>> > the
>> > mobile go in and edit the hosts file on the PC but I'm not even sure
>> > that
>> > is
>> > possible. Is it?
>> >
>> >
>> > "Paul G. Tobey [eMVP]" wrote:
>> >
>> >> What is the format of the name you're trying to resolve? "xyz.com" or
>> >> "xyz"? If it's "xyz" and if the ActiveSync connection is set up in
>> >> the
>> >> network control panel applet to be "The Internet", I think that your
>> >> lookup
>> >> should still work. If the format is "xyz.com", I think you're out of
>> >> luck.
>> >> Does the resolution work when it tries to do it via ActiveSync/PC?
>> >> You
>> >> could add the same entry to the PC's hosts file...
>> >>
>> >> Paul T.
>> >>
>> >> "Erin Defosse" <> wrote in
>> >> message
>> >> news:4DE98087-035D-4E63-B48D-...
>> >> > Hello:
>> >> >
>> >> > I am developing an application that, for a variety of reasons, needs
>> >> > to
>> >> > be
>> >> > able to lookup the IP address of a server that is stored in the WM
>> >> > 5.0
>> >> > device's registry at HKEY_LOCAL_MACHINE\Comm\Tcpip\Hosts. All works
>> >> > fine
>> >> > when the mobile device is connected to the Internet via Wi-Fi or
>> >> > cellular
>> >> > but
>> >> > when the device is attached to the PC via ActiveSync it uses the IP
>> >> > stack
>> >> > on
>> >> > the PC to resolve names and thus ignores the entry in its own
>> >> > registry.
>> >> > Is
>> >> > there a way to force the mobile to resolve the address locally
>> >> > instead
>> >> > of
>> >> > using the IP stack on the PC?
>> >> >
>> >> > Thanks,
>> >> >
>> >> > -Erin
>> >>
>> >>
>> >>
>>
>>
>>
|