Share via


How to change IP address for Windows Ce device?

Question

Friday, November 4, 2011 2:15 PM

Hi All,

 

My Windows CE 5 device is showing[in command prompt using "ipconfig"] me Ip address as 0.0.0.0 when not connected to the network. Now, I want to change this Ip address to some other IP address so that I can get it using "ipconfig".I changed the IP address that is in registry[autoIp] from 0.0.0.0 to 168.192.11.23 and kept DHCPEnable value 0(previously it was 1).But, the IP address is not getting changed. I want to change the IP address. Can anyone please tell me how to do this?

 

Note:

 

I just referred this link : http://msdn.microsoft.com/en-us/library/ms881775.aspx

 

Thanks.

 

 

 

 

Jyotiranjan

All replies (4)

Friday, November 4, 2011 2:55 PM

Can't you use the GUI to do this? I mean: control panel-> network ->...

"AutoIp" is related to APIPA (see ), you do not need to change it. The registry entry for the static IP (it looks like you do not want DHCP) is "IPAddress"

Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com


Friday, November 4, 2011 4:13 PM

Can't you use the GUI to do this? I mean: control panel-> network ->...

"AutoIp" is related to APIPA (see ), you do not need to change it. The registry entry for the static IP (it looks like you do not want DHCP) is "IPAddress"

Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com

Thanks for this reply,

I do not understand what you mean by ""AutoIp" is related to APIPA (see )" ? Could you please elaborate??

I gave the Ip address in " control panel -> network properties -> ethernet adapter propertics" and assign a new IP to it; but, still I'm getting the IP address as 0.0.0.0.

Please help.

Jyotiranjan


Friday, November 4, 2011 4:18 PM

sorry I forgot the links for the APIPA stuff (This is for you reference, is not related to the actual problem):

http://support.microsoft.com/kb/307287/en-us

http://support.microsoft.com/kb/220874/en-us

Which IP address do you see (in GUI, ipconfig,...) if you connect to the network?

 

Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com


Friday, November 4, 2011 4:48 PM

For the registry-change method of updating the IP, you have to tell NDIS to reload the registry values. You can do this by opening NDISUIO and sending a

IOCTL_NDIS_REBIND_ADAPTER

message to the adapter you want to reload from the registry. Search for the IOCTL name on the Web and you'll find old posts from me and others about the actual code, which I don't have in front of me.

Paul T.