Windows Vista Tips

Windows Vista Tips > Newsgroups > ActiveSync > Override use of PC's IP stack/DNS when connected via ActiveSync?

Reply
Thread Tools Display Modes

Override use of PC's IP stack/DNS when connected via ActiveSync?

 
 
Erin Defosse
Guest
Posts: n/a

 
      01-07-2007
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
 
Reply With Quote
 
 
 
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a

 
      01-08-2007
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



 
Reply With Quote
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a

 
      01-09-2007
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

>>
>>
>>



 
Reply With Quote
 
Erin Defosse
Guest
Posts: n/a

 
      01-10-2007
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
> >>
> >>
> >>

>
>
>

 
Reply With Quote
 
Paul G. Tobey [eMVP]
Guest
Posts: n/a

 
      01-10-2007
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
>> >>
>> >>
>> >>

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Activesync 4.2 automatically starts when my device is first connected Sandra Margon ActiveSync 2 01-04-2007 04:57 PM
Activesync 4.1 - WM 5.0 WORKING Paco Plus ActiveSync 6 05-12-2006 06:16 PM
Re: Cingular 8125/WM5.0/Win2000/AS 4.1 No Can Do... Raj Pillai ActiveSync 1 04-26-2006 01:33 PM
Never Connected using ActiveSync dlj ActiveSync 7 01-01-2006 11:13 PM
ActiveSync Help Please Nick ActiveSync 3 10-18-2005 07:58 PM



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59