Click here to Skip to main content
11,415,390 members (88,893 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
i have tried both Shell("cmd.exe /c ipconfig/renew") and Shell("NET START DHCP") , Shell("cmd.exe /c ipconfig/release") and Shell("NET STOP DHCP") but they did not work. any suggestions would be a great help. thanks Smile | :) im trying to make a program that can disable and enable internet connection of client computers from a server computer without disconnecting the LAN. is it possible ?
Posted 10-Nov-13 0:37am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Probably not - if you want to keep the LAN connection, then you need to break the internet connection - which means doing it via the router rather than the local PC. And each one is different, and needs a different procedure to do that. Added to which, you will severely annoy anyone else that is using the same internet connection...

What are you trying to do that you think this would be a good idea?
  Permalink  
Comments
Member 10232851 at 14-Nov-13 15:00pm
   
for a computer laboratory. so that the system may disable/enable internet connections of the computer units. but still they would be able to access the network.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 9,270
1 OriginalGriff 7,512
2 Maciej Los 3,710
3 Abhinav S 3,325
4 Peter Leow 3,084


Advertise | Privacy | Mobile
Web04 | 2.8.150427.4 | Last Updated 10 Nov 2013
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100