I have a 7F2WE 1G5D-OC-LF mother board from Jetway running Windows CE 6.0.
I would like set a static ip address so the device always comes up with the
same ip address. Can you please supply some instructions?
--
Don
HKEY_LOCAL_MACHINE\Comm\<YourAdapter>\Parms\TcpIp]
"EnableDHCP"=dword:0
"DefaultGateway"="192.168.1.1"
"UseZeroBroadcast"=dword:0
"IpAddress"="192.168.1.100"
"Subnetmask"="255.255.255.0"
for the reference in MSDN:
http://msdn.microsoft.com/en-us/library/aa930280.aspx
Good luck,
Erwin Zwart,
Check out my blog: http://GuruCE.com/blog
GuruCE
Microsoft Embedded Partner
http://GuruCE.com
Consultancy, training and development services.
Don schreef:
Is there a way to do it remotely? By use remoteadmin?
--
Don
Maybe you should give us the full story and let us suggest how to do it.
Paul T.
"Don" <D...@discussions.microsoft.com> wrote in message
news:C4FBE4D3-D8B8-4C80...@microsoft.com...
Thanks for your reply. Sorry here is the whole the story. Write now I have
built Windows CE 6.0 image that has the DHCP turned on and ip addresses are
generated dynamically. I have a customer who would like to be able to set an
ip address of their choice. I would prefer not to have to rebuild my nk.bin
to accomadate them. If I have to then I will have a special nk.bin
specifically for that customer. I would prefer if I could write some code to
do it on the fly after the machine boots. Is that possible? I have already
done something by importing the winsock.dll to set the hostname like this
[DllImport("winsock.dll", SetLastError = true)]
public static extern int sethostname(Byte[] name, int cbName);
and then calling sethostname where I choose from a C# program.
I am interested in a coding solution that would turn off the DHCP and set an
ip address on the fly after the machine boots up so that it is always the
same. Your statement
"You can set the IP address through
> the user interface, of course"
Can you expand on this for me please?
--
Don
--
Chris Tacke, Embedded MVP
OpenNETCF Consulting
Giving back to the embedded community
http://community.OpenNETCF.com
"Don" <D...@discussions.microsoft.com> wrote in message
news:5C087142-1C29-4DDD...@microsoft.com...
Thanks for the reply. I realize you can set it in the manner you have
described. It does go back to its original state after a reboot and the
static ip is not retained. The customer would like to have the setting
retained so they don't have to do this every time the device is rebooted.
The fact that it can be change on the fly tells me I could have them put the
ip in a text file and I could write program that reads the text file and set
it using a program. Can you point me in the right direction where I can find
some documentation to inport a dll or something and set it using function
calls?
--
Don
Paul T.
"Don" <D...@discussions.microsoft.com> wrote in message
news:4604670A-CF1A-4BC4...@microsoft.com...
I agree with Paul that your problem is most likely due to your
settings not persisting properly in the registry.
You need to have a persistent registry in your device (lookup up hive-
based registry) for it to keep the settings.
If you already have a hive-based registry make sure that you don't
reboot it before the new settings are written to your flash device.
You either need to manually flush the registry to disk or ensure that
your configuration is such that CE will automatically flush the
registry to disk for you.
Regards,
Brad.
> "Don" <D...@discussions.microsoft.com> wrote in message
--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOG http://geekswithblogs.net/bruceeitman
EuroTech Inc.
www.EuroTech.com
"Bradley Remedios" <brem...@gmail.com> wrote in message
news:2b0f81f5-8691-428c...@37g2000yqp.googlegroups.com...