shubhpittu | 168 points
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
Hello man. Actually lot of people are new to this script thing. We will be very thankful if you could guide us on this.
[-] shubhpittu | 5 points
Sure. What do you need? Are you stuck somewhere?
[-] R3a1ityCheque | 4 points
Very nice. Thanks very much for this
thanks mate, do you anything for a MacBook?
[-] shubhpittu | 5 points
So sorry. Haven't tried it yet but I'll definitely try to make one. Stay tuned. :)
[-] Adhesiveduck | 2 points
This would be really easy to replicate in bash. You could run it from the terminal.
[-] Mike072292 | 3 points
Im using PIA anyone know how I can use this with his code?
[-] shubhpittu | 2 points
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
[-] Mike072292 | 2 points
Ok then I just change the pure vpn to Pia?
[-] shubhpittu | 2 points
Yes sir! That's correct
[-] hotboilivejive | 1 points
What if you're using Windows 7?
[-] shubhpittu | 1 points
Should work
[-] ihavenolifeee | 3 points
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.
[-] shubhpittu | 2 points
Which VPN are you using?
[-] michelangelo88 | 2 points
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
[-] shubhpittu | 3 points
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.
[-] ruralcricket | 2 points
what provider are using? I'm using windscribe and they don't have a cmd line interface.
[-] Mysterymender | 2 points
You type the script in a blank notepad file and save it as a .bat
[-] ruralcricket | 3 points
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.
[-] shubhpittu | 2 points
https://windscribe.com/guides/windows . Go to the following section
Manual Setup - GUI
This will setup a new connection and rasdial will work
[-] ruralcricket | 3 points
Excellent. Thanks.
[-] GeniusEvil | 2 points
Gotta check this later. Thanks.
[-] Mysterymender | 2 points
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?
[-] shubhpittu | 3 points
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.
[-] doot_doot_doot_doo | 2 points
i know this is aimed at the windows users, but this is dead simple in linux
[-] shubhpittu | 2 points
Yeah. I know. That's why I posted only for windows. :)
[-] [deleted] | 2 points
[deleted]
[-] shubhpittu | 2 points
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?
[-] shubhpittu | 2 points
For me it does. I'm using PureVPN. It gives me a new IP even though it connects to the same location
[-] doot_doot_doot_doo | 1 points
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
[-] [deleted] | 1 points
[deleted]
[-] doot_doot_doot_doo | 1 points
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?
[-] Mysterymender | 2 points
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.
[-] shubhpittu | 2 points
Which VPN?
[-] Mysterymender | 1 points
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
)
[-] shubhpittu | 3 points
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
[-] Mysterymender | 1 points
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.
[-] shubhpittu | 2 points
You're welcome. Glad that it worked for you :)
11-12 for 3 gigs? Man I get 30 min for half a gig.
[-] shubhpittu | 2 points
MegaDownloader still works perfectly for me, am I the only one who doesn't need to use any of these fixes?
[-] shubhpittu | 2 points
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?
I last used it last night, I downloaded a 12gb file immediately followed by a 3gb file. I had 0 problems while downloading.
[-] shubhpittu | 1 points
🤔 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
[-] ruralcricket | 2 points
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
[-] shubhpittu | 1 points
So when does JDownloader2 actually call this? When the quota is over? What invokes Auto reconnect? (Haven't used JDownloader a lot)
[-] ruralcricket | 1 points
When it sees mega (other?) return a bandwidth exceeded.
[-] shubhpittu | 1 points
Hmm. Nice. Sounds good. Thanks for the tip.🙏🏻 I'll try this first thing when I get a chance.
[-] Megabanette4 | 1 points
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
[-] Mysterymender | 1 points
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.
[-] Megaderp798 | 1 points
@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.
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
[-] shubhpittu | 1 points
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
$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
[-] shubhpittu | 1 points
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
[-] rock_rahul | 1 points
i think he meant MEGA's bandwidth. not his ISP's FUP.
[-] shubhpittu | 1 points
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
[-] briank6932 | 1 points
Anyone know how to do this with Hotspot Shield?
[-] shubhpittu | 1 points
Should be similar. Try referring to hotspot shield manual
[-] briank6932 | 1 points
I don't believe a Hotspot Shield manual exists.
[-] shubhpittu | 1 points
Oh. I'll try to figure out how to do it. Let me get back to you on that.
[-] ButtGardener | 1 points
Any idea how to get this to work with AirVPN?
[-] 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