Blog
Thursday, May 05, 2005
Setting ipaddress
This is my first post here... i thought about this sometime back, but din have the time. Anyway i guess the posts here will help me sometime.
This is a simple code to change your ipaddress through a program, two things to keep in mind are
a) you should know the name of the interface for which you are assigning the ipaddress
b)you should be knowing the ipaddress.
will try to complicate the issue later.
open visual studio and create a win32 console application.
you would need to include process.h
#include "stdafx.h"
#include "PROCESS.h"
int main(int argc, char* argv[])
{
system("netsh interface ip set address local static addr=192.168.18.16 mask=255.255.255.0");
return 0;
}
that should change the address, if at all the netsh command works in the OS.
senthil natarajan @ 6:10 AM
Previously...
z-index and IE 7
Racism in india???
Boot disks
XPE .......1
Starting it all...
Setting ipaddress
Months Back...
May 2005
June 2005
October 2005
January 2006
March 2010
Current Posts