Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Client Server? Maybe

Status
Not open for further replies.

saintedmunds

Technical User
Apr 7, 2006
78
GB
Hi Everyone

Ok I have written and app that changes the proxy settings on a workstation which points to a simple page that says "Internet Disabled" this is all done on a form at the moment. What i would like to happen is on a control pc the internet can be Enabled/Disabled on the click of a button.

So the question how can i get the worksation to check if internet True or False and run the correct function on its self.

Any Help would be great

Cheers
 
If you make a DB(even flat file would work) that the app reads from a remote computer to look up it's MAC/Name/IPAddress from the list to see if it's allowed or not. You can then either edit the file manually, or make a form with a datagrid that lets you change the settings graphically.
 
If you are dead set on doing this...

create a database that lists the PCs and indicates if they are aloud on the internet.

create a service that will run on all of the PCs that have a timer that fires every 10 seconds to hit that database and see if they are alloud. If the alloud state changes, run your code to modify the proxy settings.

create a windows application for the "control" computer that allows a user to determine which PCs are on or Off.

If your students are highschool level or above, they will likely have a work around to this system in a minimal period of time. (ie: shutting down the service, killing the process, altering what ever identifier you are using, blocking the port used by the database connection, manually correcting the proxy settings, etc...)

-Rick

VB.Net Forum forum796 forum855 ASP.NET Forum
[monkey]I believe in killer coding ninja monkeys.[monkey]
 
>>>If your students are highschool level or above

Now adays, that's probably lower. My daughter is 13 and has been messing with proxy settings since the 6th grade. Like we've all told you many times...this is NOT the best way to do it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top