⭠ Back to MegaDB Search

shubhpittu | 168 points | Dec 23 2017 14:35:38

[META] BANDWIDTH LIMIT EXCEEDED FIX AUTOMATION SCRIPT USING VPN | Megalinks MegaDB [META] BANDWIDTH LIMIT EXCEEDED FIX AUTOMATION SCRIPT USING VPN

Hello Guys, I know a lot of you guys have been using a VPN to bypass Bandwidth Limit as is shown [here] (https://www.reddit.com/r/megalinks/comments/6oh6jm/meta_bandwidth_limit_exceeded_fix/)

I find it really painful to disconnect and connect my VPN again and then restarting MegaSync again. I've designed a script which automatically reconnects VPN after a set interval.

Prerequisites : Create a VPN connection setting(refer your VPN manual) for e.g. Check This Make sure your sign-in info is saved in the VPN settings. for e.g. Check This

Below is the script. Replace "PureVPN" with your connection name and 660 with the number of seconds after which you want to re-connect. For me it takes around 11-12 minutes to download 3 GB and hence I've set it to 660 seconds.

@echo off
for /L %%n in (1,0,10) do (
rasdial "PureVPN"
timeout /t 660 /nobreak
rasdial "PureVPN" /disconnect
)

Save this as a .bat file and voila! Start your download, sit back and relax. This script will keep running in the background and keep reconnecting to your VPN. I've kept it to 660 seconds so that it reconnects before I consume 3 GB. That way I don't have to restart MegaSync. During the connection/reconnection phase, MegaSync waits and then starts downloading again. I've downloaded close to 500 GB using this method without any manual interaction!

P.S : Let me know if you guys want a video to be made on this

EDIT 1 :

Prerequisites

Make sure your sign-in info is saved in the VPN settings. for e.g. Check This

permalink


[-] remikys | 17 points | Dec 23 2017 16:11:01

plz make a video of this.

permalink

[-] shubhpittu | 12 points | Dec 23 2017 20:40:16

Okay. I'll try and make one.

permalink

[-] Ajinkya28 | 8 points | Dec 23 2017 16:02:34

Hello man. Actually lot of people are new to this script thing. We will be very thankful if you could guide us on this.

permalink

[-] shubhpittu | 5 points | Dec 23 2017 20:39:28

Sure. What do you need? Are you stuck somewhere?

permalink

[-] R3a1ityCheque | 4 points | Dec 23 2017 14:56:27

Very nice. Thanks very much for this

permalink

[-] j_aleka | 4 points | Dec 23 2017 15:06:08

thanks mate, do you anything for a MacBook?

permalink

[-] shubhpittu | 5 points | Dec 23 2017 20:51:47

So sorry. Haven't tried it yet but I'll definitely try to make one. Stay tuned. :)

permalink

[-] Adhesiveduck | 2 points | Dec 24 2017 03:51:41

This would be really easy to replicate in bash. You could run it from the terminal.

permalink

[-] Mike072292 | 3 points | Dec 23 2017 17:37:24

Im using PIA anyone know how I can use this with his code?

permalink

[-] shubhpittu | 2 points | Dec 23 2017 17:49:22

I would recommend going through PIA manual. All you have to do is go to Windows 10 Settings. Add a VPN and full out necessary details about VPN provider, e.g. Server, Protocol, DNS credentials etc

permalink

[-] Mike072292 | 2 points | Dec 23 2017 18:37:50

Ok then I just change the pure vpn to Pia?

permalink

[-] shubhpittu | 2 points | Dec 23 2017 18:50:10

Yes sir! That's correct

permalink

[-] hotboilivejive | 1 points | Dec 23 2017 21:48:39

What if you're using Windows 7?

permalink

[-] shubhpittu | 1 points | Dec 24 2017 03:22:18

Should work

permalink

[-] ihavenolifeee | 3 points | Dec 23 2017 17:45:36

I keep getting this error. Remote Access error 703 - The connection needs information from you, but the application does not allow user interaction.

Any way to resolve that?

Edit - Redid GUI Settings on WindScribe and got it working. Followed the directions on their website.

permalink

[-] shubhpittu | 2 points | Dec 23 2017 17:46:34

Which VPN are you using?

permalink

[-] michelangelo88 | 2 points | Dec 23 2017 16:01:15

Thanks. OT: Something is wrong with MegaSync since yesterday. Only saw the bandwidth limit exceed messaged thrice. Must've got 400gb of data in less than a day. Whenever I did see the message, I connected to VPN and disconnected from it after about 2-3gb with megasync still running, it resumed my downloads but at full speed

permalink

[-] shubhpittu | 3 points | Dec 23 2017 20:54:35

Dude. This happened to me a couple of days ago. This was because something was wrong with my ISP. My IP was changing quite frequently and my download quota was also not being counted. i downloaded 500 GB and my ISP was showing that I haven't downloaded anything.

This is a rare thing though.

permalink

[-] ruralcricket | 2 points | Dec 23 2017 16:11:25

what provider are using? I'm using windscribe and they don't have a cmd line interface.

permalink

[-] Mysterymender | 2 points | Dec 23 2017 16:14:07

You type the script in a blank notepad file and save it as a .bat

permalink

[-] ruralcricket | 3 points | Dec 23 2017 16:23:04

of course, but i don't use purevpn. i'm using windscribe which uses openvpn as the underlying tunnel software and sets up a network adapter not a ras connection.

permalink

[-] shubhpittu | 2 points | Dec 23 2017 16:40:19

https://windscribe.com/guides/windows . Go to the following section

Manual Setup - GUI

This will setup a new connection and rasdial will work

permalink

[-] ruralcricket | 3 points | Dec 23 2017 20:58:00

Excellent. Thanks.

permalink

[-] GeniusEvil | 2 points | Dec 23 2017 17:35:16

Gotta check this later. Thanks.

permalink

[-] Mysterymender | 2 points | Dec 23 2017 18:02:16

I wonder if the script could be modified that instead of a timeout a measure of downloaded data could be used to reset the VPN?

permalink

[-] shubhpittu | 3 points | Dec 23 2017 18:03:52

I wanted to do that in the first place. That's how I started but couldn't get to doing that. Didn't find a way. Although I'm still on it. Next version of this script maybe🙂

Thanks for the suggestion though.

permalink

[-] doot_doot_doot_doo | 2 points | Dec 23 2017 20:32:45

i know this is aimed at the windows users, but this is dead simple in linux

permalink

[-] shubhpittu | 2 points | Dec 23 2017 20:34:02

Yeah. I know. That's why I posted only for windows. :)

permalink

[-] [deleted] | 2 points | Dec 23 2017 18:52:17

[deleted]

permalink

[-] shubhpittu | 2 points | Dec 23 2017 18:54:50

I'm not sure how to do it. Would love to know how to do it. Could you please explain how to do that it in detail?

permalink

[-] shubhpittu | 2 points | Dec 23 2017 19:17:28

For me it does. I'm using PureVPN. It gives me a new IP even though it connects to the same location

permalink

[-] doot_doot_doot_doo | 1 points | Dec 23 2017 20:34:21

you would need to have a script b e run thru their reconnection manager. otherwise the state (ie bandwidth limit exceeded) will not be reset and it wont realize it got a new IP. I went that route initially but gave up after a bit a simply send it a proper kill signal (I'm on linux) to kill it and bring it back up once my vpn swaps IPs

permalink

[-] [deleted] | 1 points | Dec 23 2017 20:59:22

[deleted]

permalink

[-] doot_doot_doot_doo | 1 points | Dec 23 2017 21:57:46

I tried a few times using it, and it just never wanted to work. much simpler for me to just look for my pids and send kill signals and have my own logic run things for me. Not as elegant as an all in one within jd2, but whatever works, right?

permalink

[-] Mysterymender | 2 points | Dec 23 2017 19:57:09

Darn I get a remote access error 691.

Manually clicking connect from within windows 10 and it connects but starting or restarting the VPN with script throws the error.

Even changed the name of my VPN in the script.

permalink

[-] shubhpittu | 2 points | Dec 23 2017 19:59:02

Which VPN?

permalink

[-] Mysterymender | 1 points | Dec 23 2017 20:33:09

VPN Unlimited. Connecting and disconnecting works fine when using the internal windows VPN. Now it works sort of.

Did add "login name" "Password" behind "VPN Name" in the script and now it does connect but now it doesn't disconnect and reconnect. It just loops and says "You are already connected to VPN Name.

@echo off for /L %%n in (1,0,10) do (

rasdial. "My VPN name" "MY login" "MY password" timeout /t 660 /nobreak

rasdial "My VPN name" MY login" "MY password"

/disconnect

)

permalink

[-] shubhpittu | 3 points | Dec 23 2017 20:38:46

Because the command for disconnection is wrong. You don't need to specify username and password while disconnecting. That's why disconnecting line doesn't execute

permalink

[-] Mysterymender | 1 points | Dec 23 2017 20:44:27

Ahhh ok winner winner chicken dinner.

Now the last line is

rasdial /disconnect

and it shows it disconnects on the windows VPN screen and then reconnects.

Now I just need to fine tune the timeout length because I am on a 100Mb connection.

Thanks for the script and advice.

permalink

[-] shubhpittu | 2 points | Dec 23 2017 20:45:55

You're welcome. Glad that it worked for you :)

permalink

[-] Doip | 2 points | Dec 23 2017 20:33:04

11-12 for 3 gigs? Man I get 30 min for half a gig.

permalink

[-] shubhpittu | 2 points | Dec 23 2017 20:35:38

Shit! I thought I had a shitty connection. I've got a 40 Mbps connection. Using a VPN gives me an average of 4.5 MB/s download 🙂

permalink

[-] Doip | 2 points | Dec 23 2017 20:40:17

430kbps through jDownloader. Wide open. Anything else on, 250ish.

permalink

[-] Eucbevt | 2 points | Dec 23 2017 20:48:31

MegaDownloader still works perfectly for me, am I the only one who doesn't need to use any of these fixes?

permalink

[-] shubhpittu | 2 points | Dec 23 2017 20:50:02

Uh! I think so. It hasn't worked for me in months. MegaDownloader is deprecated as well as Mega put a server side restriction.

When did you last use MegaDownloader? File size?

permalink

[-] Eucbevt | 1 points | Dec 24 2017 01:37:57

I last used it last night, I downloaded a 12gb file immediately followed by a 3gb file. I had 0 problems while downloading.

permalink

[-] shubhpittu | 1 points | Dec 24 2017 03:25:11

🤔 Good for you then. Doesn't work for most of us no more. A couple of days ago it happened with me also. MegaSync downloaded 60 GB without any hiccups (no VPN). But that was a one time thing. Not really sure why

permalink

[-] ruralcricket | 2 points | Dec 24 2017 21:51:46

I use Jdownloader2 and have this working there. I call this script

reconnect.cmd

echo %date% %time% Reconnect called >>   p:\dl\reconnect_log.txt
rasdial winscribe-central /disconnect
timeout /t 2 /nobreak
rasdial winscribe-central

And these settings in JD2 https://imgur.com/7NNEF1J

Reconnect method - External batch reconnect - Interpreter path_to_script\reconnect.cmd

The echo is just for me to understand that it was working

permalink

[-] shubhpittu | 1 points | Dec 24 2017 21:55:50

So when does JDownloader2 actually call this? When the quota is over? What invokes Auto reconnect? (Haven't used JDownloader a lot)

permalink

[-] ruralcricket | 1 points | Dec 24 2017 22:03:28

When it sees mega (other?) return a bandwidth exceeded.

permalink

[-] shubhpittu | 1 points | Dec 24 2017 22:04:42

Hmm. Nice. Sounds good. Thanks for the tip.🙏🏻 I'll try this first thing when I get a chance.

permalink

[-] Megabanette4 | 1 points | Dec 23 2017 18:58:30

Remote Access error 623 - The system could not find the phone book entry for this connection.

For more help on this error: Type 'hh netcfg.chm' In help, click Troubleshooting, then Error Messages, then 623

permalink

[-] Mysterymender | 1 points | Dec 23 2017 20:51:28

Added "my login name" and "my password" to the script helped me with that error.

Look at my post and you will see what I mean.

Also you don't need to add your login name and password info to the disconnect part of the script. All I needed for the disconnect section was radial "My VPN name" /disconnect.

permalink

[-] Megaderp798 | 1 points | Dec 23 2017 20:55:08

@echo off for /L %%n in (1,0,10) do (

rasdial "VPN Name" "LOGIN NAME" "PASSWORD" timeout /t 660 /nobreak

rasdial "VPN Name" /disconnect )

Here you go I am mysterymender and this is what I was talking about.

permalink

[-] jtrolfsen | 1 points | Dec 24 2017 00:15:27

lol. i tried using a vpn but got tired of downloading in like 200kb/s so i just paid the $60 to upgrade my account to the cheapest 1 year account. now i have 12tb quota per month, and can download at my full 11mb/s

permalink

[-] shubhpittu | 1 points | Dec 24 2017 03:27:31

Woah! PureVPN is at $60 for a lifetime license. I have that VPN which I had bought for $90. Insane speeds. Maybe you should consider buying that

permalink

[-] jtrolfsen | 0 points | Dec 24 2017 04:30:08

$60 for a lifetime license

Or i could not use a vpn and get even higher speeds. Plus after spending the $60 to upgrading my account to their pro lite service, i get a 12tb quota per month so i dont have to worry about bandwidth issues

permalink

[-] shubhpittu | 1 points | Dec 24 2017 04:32:32

Yeah. That's true. Totally agreed. Whatever suits you. 🙂 For me, I needed a VPN anyway. Bypassing bandwidth was just a by-product of that. 12 TB per month is seriously impressive. My monthly FUP is less than 1/12 th of that :p

permalink

[-] rock_rahul | 1 points | Dec 24 2017 11:45:33

i think he meant MEGA's bandwidth. not his ISP's FUP.

permalink

[-] shubhpittu | 1 points | Dec 24 2017 11:47:04

I know. My point is that I won't be able to use 12 TB quota per month as my FUP is way below that

permalink

[-] briank6932 | 1 points | Dec 24 2017 03:17:45

Anyone know how to do this with Hotspot Shield?

permalink

[-] shubhpittu | 1 points | Dec 24 2017 03:27:53

Should be similar. Try referring to hotspot shield manual

permalink

[-] briank6932 | 1 points | Dec 24 2017 03:53:00

I don't believe a Hotspot Shield manual exists.

permalink

[-] shubhpittu | 1 points | Dec 24 2017 03:53:37

Oh. I'll try to figure out how to do it. Let me get back to you on that.

permalink

[-] ButtGardener | 1 points | Dec 29 2017 23:11:38

Any idea how to get this to work with AirVPN?

permalink

[-] Rainwak3r | 1 points | Dec 30 2017 00:10:17

it would be awesome if you could do a video guide for this

permalink