Re: Override use of PC's IP stack/DNS when connected via ActiveSyn



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








.



Relevant Pages

  • Re: How to handle large number of users
    ... your cell phone app won't interact with a database directly. ... mobile apps communicate over SMS or a direct IP connection. ... the server handling the millions of transactions is like a web server ...
    (borland.public.delphi.non-technical)
  • Data gone missing on sync
    ... Mobile 5.0 Pocket PC and syncing with sql 2005 server. ... After I start the app, edit the setting for the app (db location, pwd/ ... usr etc) and sync the db with the server I get two rows of data. ...
    (microsoft.public.sqlserver.ce)
  • Re: Override use of PCs IP stack/DNS when connected via ActiveSyn
    ... The name I'm trying to resolve is XYZ. ... the server without any mods on the mobile or the PC. ...
    (microsoft.public.pocketpc.activesync)
  • Res: Sendmail multiple domain
    ... I think you cant do that, but you can use a subdomain and virtusertable. ... We have setup one sendmail server with mycompany.com at ABC place. ... Now at XYZ place we need to set the server for mycompany.com only. ...
    (RedHat)
  • Re: SOLVED Re: Sendmail multiple domain
    ... We changed the name of the server. ... Now at XYZ place we need to set the server for ... Redhat Channel Partner and Training Partner ...
    (RedHat)

Loading