Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

Change Computer Name & IP

Posted on 2003-03-26
2
Medium Priority
?
215 Views
Last Modified: 2013-11-20
Is there a way to programatically change the computer name and IP address of a particular network card. Any help would be greatly appreciated.

Thanks in advance,
John
0
Comment
Question by:jsaxon2
2 Comments
 
LVL 86

Accepted Solution

by:
jkr earned 1000 total points
ID: 8211751
The 1st part is easy, it's just 'SetComputerName()'. Setting the IP of a particular adapter can be done using http://support.microsoft.com/default.aspx?scid=kb%3Ben-us%3B199749 ("INFO: AddIPAddress and DeleteIPAddress in IP Helper APIs"). See also http://msdn.microsoft.com/library/default.asp?url=/library/en-us/iphlp/iphlp/managing_ip_addresses.asp ("Managing IP Addresses")
0
 
LVL 3

Author Comment

by:jsaxon2
ID: 8213556
Thanks very much.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

581 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question