By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,688 Members | 1,729 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,688 IT Pros & Developers. It's quick & easy.

How to force to change my computer IP address

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


Nov 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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" <ji*@center.njtu.edu.cn> wrote in message
news:ON**************@TK2MSFTNGP09.phx.gbl...
HI
I want to change my computer ip address for WinXP/2K in my program, who can tell me? Thanks.

Nov 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.