enable/disable DHCP

Last post 06-07-2010 8:57 by ctacke. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 07-29-2009 8:51

    • morix
    • Not Ranked
    • Joined on 07-29-2009
    • Posts 2

    enable/disable DHCP

    Hi all,

    how can I enable/disable the DHCP on a WirelessZeroConfigNetworkInterface?

    I mean: I can set the IP address & subnet mask setting CurrentIpAddress and CurrentSubnetMask properties... but how can I enable/disable DHCP programmatically starting from a reference to a WirelessZeroConfigNetworkInterface?

    I know it can be done using the Adapter class, but it is obsoleted and so I would like to avoid to use it...

    Thanks for your replies,

    /Morix

     

  • 06-07-2010 6:23 In reply to

    • siki
    • Not Ranked
    • Joined on 06-04-2010
    • Posts 1

    Re: enable/disable DHCP

    Yo, this message is old but I want know how you can change ip, dsn ... ? Have you a code sample please ?

     

     Thanks

  • 06-07-2010 8:57 In reply to

    • ctacke
    • OpenNETCF Staff
    • Top 10 Contributor
    • Joined on 07-27-2007
    • Indiana
    • Posts 2,254

    Re: enable/disable DHCP

    Once you have the NetworkInterface from the OpenNETCF.Net.NetworkInformation namespace (fy calling NetworkInterface.GetAllInterfaces) you can then adjust things like the CurrentIpAddress, etc.

Page 1 of 1 (3 items)