Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Changing a Windows CE machines IP address programatically?

How do I change the IP address of a Windows CE machine?

I want to do it from .NET Compact Framework!

like image 582
rudigrobler Avatar asked Feb 17 '26 05:02

rudigrobler


1 Answers

You can alter the current IP address by writing a new value out to the registry at HKLM\comm[adaptername]\Parms\Tcpip. Keep in mind that this is a multi-sz value and that for the change to take affect, you must call the NDIS driver with the IOCTL_NDIS_REBIND_ADAPTER IOCTL.

As Shaihi points out, the Smart Device Framework already ahs all of this wrapped up in the NetworkInterface.CurrentIpAddress property.

like image 188
ctacke Avatar answered Feb 19 '26 14:02

ctacke



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!