Re: Configurable IP Address

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


Date: Thu, 24 Feb 2005 13:26:45 -0700

Well, the value would have to come from somewhere. I think it's
unreasonable to ask the guy every time, but you can do that using the IOCTL
that I mentioned, if you have somewhere to get the address from.

Ah, I understand what you're saying with a host name. Unfortunately,
there's no standard way to cause the mapping from a DHCP assignment to a
host name to be made by the DNS server, so, unless you somehow have control
over that mapping, the DNS server wouldn't know what IP to give when the
hostname was asked for.

Paul T.

"Andrew Revell" <andrew_revell@hotmail.com> wrote in message
news:6dd1a40b.0502241203.71e1106c@posting.google.com...
> Paul,
>
> OK. What you are saying makes sense. I did search google before
> posting, but I just couldn't quite get the answer I was after... :)
>
> I do realise you can put a static IP in the registry - I have done
> this already. But at the moment my registry is not persistent, and I
> was trying to avoid having to do this. Currently it won't matter what
> I change the registry to; when I reboot it will go back to factory
> settings. I can go a hive registry if nothing else works.
>
> The IOCTL_NDIS_REBIND_ADAPTER message looks like a good way to go for
> now. This will mean when my device boots, I can read the configured
> values, alter the registry and then send the message. This will switch
> over the IP address and I will be away. Seems kind of industrial
> strength given I would think this is a reasonable common thing to do,
> but still....
>
> If I went with a host name, I would use DHCP to get a dynamic IP - the
> host name would just be used as a way for external devices to connect
> (using DNS to resolve it to an IP).
>
> Anyway, thanks for the advice. I think I will be good to go now.
> Please correct anything I have got wrong here.
>
> Andrew
>
> "Paul G. Tobey [eMVP]" <ptobey no spam AT no instrument no spam DOT com>
> wrote in message news:<u54efdoGFHA.3068@tk2msftngp13.phx.gbl>...
>> 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: Configurable IP Address
    ... If the the device has IP Helper API support, ... I understand what you're saying with a host name. ... the DNS server wouldn't know what IP to give ... But at the moment my registry is not persistent, ...
    (microsoft.public.windowsce.platbuilder)
  • Re: Saving Objectstore to a WinCE OS device
    ... As Paul pointed out, you need to provide a liitle more detail for us to ... persistent filesystem, any persistent filesystem, as the root of the ... have to worry about files going away when power is removed. ... registry andobjectstoreon system power down. ...
    (microsoft.public.windowsce.embedded)
  • Re: Multiple IPs in DNS
    ... with our internal DNS server. ... The only way to stop the records is to go into the DNS server properties, ... parent folder) record for both the domain name and the Global Catalog ... Below is the registry entry you must use regedt32 to make these entries. ...
    (microsoft.public.windows.server.dns)
  • Re: Connecting to a File Server
    ... Thanks Paul, but I confirmed by lookin directly in the registry using ... Using 4.2 we were able to save the credentials and then pass 0 to ... BOOL RetValue = FALSE; ...
    (microsoft.public.windowsce.platbuilder)
  • BIND -- cant register nameserver
    ... and is connected by Ethernet cable to the Internet ... is configured to always assign the IP address 192.168.2.2 to the host ... Nameserver doesn't exist at the ...
    (comp.os.linux.networking)