Re: Configurable IP Address

From: Paul G. Tobey [eMVP] (ptobey)
Date: 02/24/05


Date: Thu, 24 Feb 2005 08:42:03 -0700

This has been covered before. The driver for the network adapter reads the
IP information (and a flag indicating whether to use DHCP or not), from the
registry, so you can put your static IP in the registry. As I said, the
particular entries have appeared in other threads. Google archives the
newsgroup, so you can search for it there.

There's no problem giving the user some way to change the registry (we can
do it via a serial configuration program, a Telnet server [obviously, you
have to have an address to connect to it that way], etc.). After a change
is made, you can have the user reboot the unit or you can use the
IOCTL_NDIS_REBIND_ADAPTER message to get the new registry stuff to be picked
up (this has been covered before, too, and it's in the PB help).

Having a host name doesn't help the device itself *get* an IP address, as
far as I know.

Paul T.

"andrerev" <andrew_revell@hotmail.com> wrote in message
news:1109229682.004335.262790@g14g2000cwa.googlegroups.com...
> Hi all,
>
> I have a questions regarding how to make the IP address within Windows
> CE configurable.
>
> Some background:
> I have built an OS image for Windows CE 5.0 (using Platform builder)
> and a gateway style app (using CF). Up to now, I have let it simply
> pick up an IP address using DHCP. This poses two difficulities:
>
> 1) We cannot rely on all the networks we deploy to having DHCP (or can
> we??)
> 2) The device is headless, so the IP given by DHCP will a bit hard to
> find out.
>
> We could use a host name, but does this rely on their being a DNS on
> the network? Is this a big assumption?
>
> Anyway, getting to my real question... Can I assign a certain IP
> address to the windows ce device, that is "picked up" at runtime? I can
> compile an IP address into the registry, but I need to be able change
> this either while booting or after booting. I was thinking either
> through registry manipulation or calls to the win api. This is so our
> clients can set the IP address to whatever they want, and not be stuck
> with the one we ship.
>
> Thoughts? Is this impossible and I should really just always use DHCP?
>
> Thanks,
> Andrew
>



Relevant Pages

  • Re: Is it IE6 or my ISP? Page cannot be displayed error???
    ... I ended up having to restore the registry and IE seems to be working fine ... >>> This issue also may occur if the drivers for the modem and Network Adapter ... and then restarted Windows to reinstall the drivers. ... >>> c. Choose Safe mode with Networking, ...
    (microsoft.public.windows.inetexplorer.ie6.browser)
  • Re: Home Network Probs
    ... >> You can ping each PC fine... ... >> playing DHCP server and default gateway. ... Have you used the Registry Editor before? ... You can create a Registry patch by opening the Registry Editor, ...
    (microsoft.public.windowsxp.network_web)
  • RE: Event ID 1003 -> DHCP problem
    ... this is an expected behavior while DHCP Client failed to contact ... DHCP Server to renew the IP address. ... Considering your scenario that the affected network adapter is ... I suggest that you replace the external network adapter on the SBS ...
    (microsoft.public.windows.server.sbs)
  • Re: changing the ip address via command line
    ... Unfortunately Windows CE has no possibility to change the IP without using ... After writing to the Registry I call IOCTL_NDIS_REBIND_ADAPTER, ... If I look on the settings in the control panel I can see the right ... Set DHCP with control panel is always working without any problems, ...
    (microsoft.public.windowsce.embedded)
  • Re: 224.0.0.1
    ... I'm getting the following files showing up on Win2K Advanced Server ... looking to see if there was a check mark in the network adapter ... of DHCP and is being used there to do what it does. ... Use this connection's DNS suffix in DNS registration ...
    (microsoft.public.win2000.dns)