Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a way to quit a program automatically, or stop it running, when connected to a particular Wi-Fi network?

I have µTorrent running, but want it to stop if the computer connects with the college wifi and have it be able to auto-start when connected to the Wi-Fi at home. Is this possible?

share|improve this question

closed as not a real question by Dave M, Wuffers, Sathya Mar 27 '12 at 7:37

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

    
Which OS? How is networking configure on that OS? –  evnu Mar 15 '12 at 16:34

1 Answer 1

up vote 2 down vote accepted

This could probably be most easily done using firewall settings. Most firewalls allow you to specify different "zones" and then create custom rules associated with them. Since you probably are concerned about packet sniffing/bandwidth use on your college network, simply blocking uTorrent's network traffic on your college campus should be sufficient. All you would have to do is create a separate zone for your campus network, and specify a rule that will disallow all inbound and outbound traffic specifically for the uTorrent application (or, alternatively, on the ports that uTorrent uses for communication, if you want to be application-agnostic). Then you can create another zone for your home network and create a rule for that zone specifically allowing traffic for uTorrent (or on those ports).

To control starting/stopping applications, under Windows, you would have to use the Task Scheduler. You can schedule a task for starting the uTorrent application and have it trigger conditionally, only when connected to your home network. I don't believe the Task Scheduler has options to conditionally stop tasks, but it could conceivably be done if you know how to write a script or small program that sends a terminate signal to the uTorrent process, effectively instructing it to close the program, and have it run automatically when connected to your campus network.

share|improve this answer
2  
For the firewall solution it is even easier than that and its built right in to Windows 7. Using windows firewall you can have the firewall block/allow inbound and outbound traffic by application, instead of by port. Just set the "Domain" and "Public" profiles to block all inbound and outbound traffic to utorrent.exe, and leave "Home" unfiltered, no need to know the ports at all. –  Scott Chamberlain Mar 16 '12 at 21:07
    
@ScottChamberlain Thanks. Good point. Edited that into the post. –  Ben Richards Mar 16 '12 at 21:11

Not the answer you're looking for? Browse other questions tagged or ask your own question.