views:

494

answers:

2

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

I want to do it from .NET Compact Framework!

+1  A: 

Take a look at this and this.

Shaihi
+1  A: 

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.

ctacke

related questions