Can I change my IP address with Fivewin/Harbour?

Can I change my IP address with Fivewin/Harbour?

Postby kim yong woo » Sat Jul 16, 2016 3:07 am

Dear Members,

Can I change my IP address with FiveWin/Harbours?

I am using Internet by ISP company.

If possible, please let me have some sample or link on IP Change.

Thanks.
User avatar
kim yong woo
 
Posts: 57
Joined: Sun Apr 12, 2009 10:51 am
Location: Seoul, Korea

Re: Can I change my IP address with Fivewin/Harbour?

Postby anserkk » Sat Jul 16, 2016 4:07 am

Code: Select all  Expand view
cAdapterType:="Local Area Connection"
cIP:="192.168.0.200"
cSubNet:="255.255.255.0"
cGateWay:="192.168.0.1"

oShell = CreateObject("Wscript.Shell")
oShell:Run ( 'netsh interface ipv4 set address name="'+cAdapterType+'" source=static address='+cIP+' mask='+cSubNet+' gateway='+cGateWay,0,.T. )
oShell:Run ( 'netsh interface ipv4 set dns name = "'+cAdapterType+'" source = static addr ='+cDns1,0,.T. )


Regards

Anser
User avatar
anserkk
 
Posts: 1332
Joined: Fri Jun 13, 2008 11:04 am
Location: Kochi, India

Re: Can I change my IP address with Fivewin/Harbour?

Postby kim yong woo » Sat Jul 23, 2016 2:06 am

Thanks so much Mr.anserkk!

I was in business travel, and found your answer today...
User avatar
kim yong woo
 
Posts: 57
Joined: Sun Apr 12, 2009 10:51 am
Location: Seoul, Korea


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 97 guests