Re: How to set IP address, subnet mask, default gateway for an adapter

From: Oliver Münchow (omuenchow_at_NOSPAMgesytecDOTde)
Date: 05/03/04

  • Next message: Pete Vickers [eMVP]: "Re: Pocket PC Grid"
    Date: Mon, 3 May 2004 09:56:38 +0200
    
    

    Hi Trevor,

    these settings (including the 'first' ip address of an ethernet adapter) can
    only be set in the registry. To find the correct key you can use a
    combination of IP Helper and Registry Access. First get all adapters from IP
    Helper and their name. Then browse through registry to
    HKLM\Comm\'AdapterName'\Parms\TcpIp and change the settings you want (IP,
    Subnet, Gateway, etc.). After that you can restart the NDIS Interface (this
    source code was already posted somewhere in a CE newsgroup).

    Best regards,
    Oliver Münchow

    -- 
    ---------------------------------------
    Gesytec GmbH    eMail:
    52076 Aachen    omuenchowATgesytecDOTde
    http://www.gesytec.de
    "Trevor" <trevor@nospam.com> schrieb im Newsbeitrag
    news:uOUN1vrLEHA.1272@tk2msftngp13.phx.gbl...
    > Hello,
    >
    >     I am trying to programmatically setup an IP adapter (static IP, subnet
    > mask, default gateway, etc...) based on data in a configuration file.  I
    am
    > aware of the IP Helper API function AddIPAddress which can be used to add
    an
    > IP address to a network adapter.  I would also like to set the default
    > gateway, DNS server, alt DNS server, WINS server, alt WINS server
    > programmatically.  Is this possible?  If the only way to do this is via
    the
    > Registry then what keys do I modify?  Any advice is appreciated.
    >
    >
    

  • Next message: Pete Vickers [eMVP]: "Re: Pocket PC Grid"

    Relevant Pages

    • Re: Network Problems and DNS
      ... >> Actually the 127.0.0.1 is part of the problem, it is the DNS address ... This adapter will configure itself. ... >> you can do is configure the listener address on the DNS server ... I'm not sure if you can change this in the registry, ...
      (microsoft.public.windows.server.dns)
    • Re: Any known issues withsp2 and non-sp xp ics?
      ... DNS Server: 192.168.0.1 or your ISP's DNS server ... After doing the above changes to the client, ... occured because the network did not assign a network address to the computer. ... assigned to another adapter 'realtek...''realtek ethernet adapter' is hidden ...
      (microsoft.public.windowsxp.network_web)
    • Re: Any known issues withsp2 and non-sp xp ics?
      ... Network Adapters: ... RAS Async Adapter ... Connection status: Limited or no Connectivity ... DNS Server: 192.168.0.1 or your ISP's DNS server ...
      (microsoft.public.windowsxp.network_web)
    • Re: Any known issues withsp2 and non-sp xp ics?
      ... DNS Server: 192.168.0.1 or your ISP's DNS server ... occured because the network did not assign a network address to the computer. ... assigned to another adapter 'realtek...''realtek ethernet adapter' is hidden ... MS TV/Video Connection ...
      (microsoft.public.windowsxp.network_web)
    • Re: Any known issues withsp2 and non-sp xp ics?
      ... DNS Server: 192.168.0.1 or your ISP's DNS server ... occured because the network did not assign a network address to the computer. ... assigned to another adapter 'realtek...''realtek ethernet adapter' is hidden ... MS TV/Video Connection ...
      (microsoft.public.windowsxp.network_web)