Enable/Disable Network Upload with C++ (or anything else?)

Posted on 2004-03-25
Last Modified: 2013-12-03
I'm interested in writing a very simple program that can be scheduled to run every now and then, and if the network upload is enabled, it should disable it. If it's disabled, it should enable it.

I'm wondering where I should look, in which API, or in which language it would be easiest? I'm familiar with C++, and a little visual basic. Any tips?
Question by:dog78
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3

Expert Comment

ID: 10683327
Can you explain what you mean by "network upload"?

Expert Comment

ID: 10685833
Do you mean the Upload Manager service, or the complete network connection (both upload and download)?

Author Comment

ID: 10696230
I'm specifically trying to solve a problem with my ISP and their rate limits. If I constantly upload, they have a fit. The tech support people recommended that for me to avoid having problems, I should cut the upload completely for at least seven minutes of every hour.

The download doesn't matter, but if it's easier to simply stop the whole interface, that's also acceptable.

In linux, I'd use an iptables rule to drop all outgoing packets. That's what I'm looking to do, here.
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.


Expert Comment

ID: 10697019
So, you're trying to run a web server at home on a DSL or Cable modem and don't want to irritate the ISP?


Author Comment

ID: 10697029
To be exact, I'm trying to help a friend who uses his "unlimited" internet connection plan more than his ISP is comfortable with. I use Linux, he uses Windows. I thought, if I were to find the right API for this, I could write something trivial he could then schedule with the windows scheduler.

Author Comment

ID: 10697032
The problem is caused by his Bittorrent client.

Accepted Solution

millsoft earned 50 total points
ID: 10697103
I don't know about linux/iptables, but the command line utility ROUTE can reroute packets.

If your computer is behind a firewall/router that can give the computer an IP address via DHCP you could effectively "turn off" the interface by typing:

IPConfig /Release

and turn it on by:

ipconfig /renew

Of course the interface isn't actually "disabled" but it may as well be.


Author Comment

ID: 10717304
Excellent solution. I'll schedule this as a BAT file.

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

With most software applications trying to cater to multiple user needs nowadays, the focus is to make them as configurable as possible. For e.g., when creating Silverlight applications which will connect to WCF services, the service end point usuall…
What my article will show is if you ever had to do processing to a listbox without being able to just select all the items in it. My software Visual Studio 2008 crystal report v11 My issue was I wanted to add crystal report to a form and show…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA.…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question