Re: How to set IP address, subnet mask, default gateway for an adapter
From: Oliver Münchow (omuenchow_at_NOSPAMgesytecDOTde)
Date: 05/03/04
- Previous message: Alice: "Problem on delete a transferred file from Pocket Pc"
- In reply to: Trevor: "How to set IP address, subnet mask, default gateway for an adapter"
- Messages sorted by: [ date ] [ thread ]
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. > >
- Previous message: Alice: "Problem on delete a transferred file from Pocket Pc"
- In reply to: Trevor: "How to set IP address, subnet mask, default gateway for an adapter"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|