Re: IP Connection Choose Static or DHCP



To set static ip addresses you'll need to edit the registry. You can set the
ip address, subnet mask, DNS servers etc all through the registry. Be sure
to also set EnableDhcp setting to 0. Then you need to rebind the adapter for
the new settings to take effect.
The settings with their names and descriptions can be found here:
http://msdn2.microsoft.com/en-us/library/ms882681.aspx

To switch back to dhcp settings, make sure to set EnableDhcp back to 1, and
again rebind the adapter.

Thanks,
- Omar

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send
email directly to this alias. This alias is for newsgroup purposes only.



"Richard Vantrease" <RichardVantrease@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:8D78FDCF-33E7-4A46-9AC4-BE7F1C2F29DA@xxxxxxxxxxxxxxxx
I have a need for an application that will allow an inexperienced user to
choose what type of connection they need, then I will make the appropriate
changes in Windows Mobile 5.

I am not experienced with the IP Helper API, so if that is your
suggestion,
some VB.Net type calls would be much appreciated.

Background:
My company uses static addressing at most sites with different IP address
ranges assigned to each site. They will not route addresses that are out
of
the pre-defined address range. However at a few sites they have DHCP
configured.

I will be writing an application in VB.Net that will give the user a list
something like:
Site 1
Site 2
Site 3
All Other Sites

Based on their choice I will need to either configure a static IP address
and gateway, or change the configuration to DHCP, then renew the address.


.



Relevant Pages

  • Re: howto: remove "extra registry settings" showing in GPO
    ... if the configuration of the ~Policy is = Not ... RsOP.msc is your friend but only to chck the settings and where those ... Using RSOP I identified the keys in the registry that were "EXTRA" (NOT ... registry keys into a template. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Windows CE 5.0 Prism Wireless Card
    ... funny about the IP settings. ... I could coldboot the terminal en then set the terminal to dhcp it would ... I need to let the registry save my changes that i make before i reboot ... (we build terminals ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Windows CE 5.0 Prism Wireless Card
    ... How do i flush the ip settings from the reg? ... I could coldboot the terminal en then set the terminal to dhcp it would ... I need to let the registry save my changes that i make before i reboot ... (we build terminals ...
    (microsoft.public.windowsce.platbuilder)
  • Re: DhcpNameServer changes after login
    ... configuration under computer configuration/administrative ... It is curious that the computer would change so fast as DHCP ... Policy settings are enforcing DNS servers in computer ... Using RegMON I can tell svchost is changing the registry but I don't ...
    (microsoft.public.windowsxp.security_admin)
  • Re: Windows CE 5.0 Prism Wireless Card
    ... If you look up the registry API functions, the method to flush should be ... How do i flush the ip settings from the reg? ... I could coldboot the terminal en then set the terminal to dhcp it would ... (we build terminals ...
    (microsoft.public.windowsce.platbuilder)