Re: Override use of PC's IP stack/DNS when connected via ActiveSyn
- From: "Paul G. Tobey [eMVP]" <p space tobey no spam AT no instrument no spam DOT com>
- Date: Wed, 10 Jan 2007 10:40:12 -0700
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" <ErinDefosse@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:C8CAE5B4-B571-4458-83F5-41D0BDC0990D@xxxxxxxxxxxxxxxx
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" <ErinDefosse@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:5BE3B891-A21C-47C3-963F-8ECAFA8096AA@xxxxxxxxxxxxxxxx
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" <ErinDefosse@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message
news:4DE98087-035D-4E63-B48D-8D6909364A9A@xxxxxxxxxxxxxxxx
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
.
- References:
- Re: Override use of PC's IP stack/DNS when connected via ActiveSync?
- From: Paul G. Tobey [eMVP]
- Re: Override use of PC's IP stack/DNS when connected via ActiveSyn
- From: Erin Defosse
- Re: Override use of PC's IP stack/DNS when connected via ActiveSyn
- From: Paul G. Tobey [eMVP]
- Re: Override use of PC's IP stack/DNS when connected via ActiveSyn
- From: Erin Defosse
- Re: Override use of PC's IP stack/DNS when connected via ActiveSync?
- Prev by Date: Re: Activesync via Bluetooth
- Next by Date: Re: Error 10054
- Previous by thread: Re: Override use of PC's IP stack/DNS when connected via ActiveSyn
- Next by thread: Re: Personal Certificate deleted after a few days ?!?
- Index(es):
Relevant Pages
|