Connecting Tech Pros Worldwide Help | Site Map

How to force to change my computer IP address

 
LinkBack Thread Tools Search this Thread
  #1  
Old November 20th, 2005, 06:18 PM
Jia
Guest
 
Posts: n/a
Default How to force to change my computer IP address

HI
I want to change my computer ip address for WinXP/2K in my program, who
can tell me? Thanks.





  #2  
Old November 20th, 2005, 06:18 PM
MadCrazyNewbie
Guest
 
Posts: n/a
Default 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]


 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,662 network members.