[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


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

Posted on 2004-03-25
Medium Priority
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.
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.


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 200 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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

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

This article shows a few slightly more advanced techniques for Windows 7 gadget programming, including how to save and restore user settings for your gadget and how to populate the "details" panel that is displayed in the Windows 7 gadget gallery.  …
As more and more people are shifting to the latest .Net frameworks, the windows presentation framework is gaining importance by the day. Many people are now turning to WPF controls to provide a rich user experience. I have been using WPF controls fo…
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. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…

649 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