Connecting Tech Pros Worldwide Help | Site Map

How to force to change my computer IP address

Jia
Guest
 
Posts: n/a
#1: Nov 20 '05
HI
I want to change my computer ip address for WinXP/2K in my program, who
can tell me? Thanks.




MadCrazyNewbie
Guest
 
Posts: n/a
#2: Nov 20 '05

re: How to force to change my computer IP address


Jia,

You Could try:

Private Sub btnRixRoad_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnRixRoad.Click
Dim RixRoad As New ProcessStartInfo()
RixRoad.FileName = "Netsh"
RixRoad.Arguments = "int ip set add name=""Local Area Connection""
source=static addr=10.109.220.254 mask=255.255.0.0 gateway=10.109.200.1
gwmetric=1"
Process.Start(RixRoad)
End Sub

This worked for me - althought im sure there is otherways of doing it.

Ta
MCN

"Jia" <jia@center.njtu.edu.cn> wrote in message
news:ONjitnhOEHA.1392@TK2MSFTNGP09.phx.gbl...[color=blue]
> HI
> I want to change my computer ip address for WinXP/2K in my program,[/color]
who[color=blue]
> can tell me? Thanks.
>
>
>
>[/color]


Closed Thread