This method to toggle data on and off remotely with Tasker & K-9 mail works perfect
It's easy to follow. The only thing is there is no save button in Tasker like stated in the original directions. You have to hit the back arrow in the upper left corner of Tasker screen, that's what saves the info.
This works fast... Way faster than toggling airplane mode on and off. It drops connection and picks it back up in about 1-2 seconds.
I'm copying and pasting this info from MultiLoginApp's Blog page.
Controlling IP releases remotely
If you plan to access the mobile connection remotely, you should learn how to control the IP releases without having a direct access to the phone. Below we explain how you can “tell” your phone to get a new IP address by simply opening a link in a browser.
First of all, to set everything up you need two Android applications:
Tasker – paid app, which costs €2.99 at the time of writing
K-9 email app - Free
To set everything up, just follow the instructions bellow:
Install Tasker and K-9 email apps on your mobile phone with 3G/4G internet connection
Setup your Tasker profile
Go to the Tasker app
Click add profile (The plus icon on the bottom)
Choose “Event” -> 3rd Party -> K-9 email
Write the following strings in the fields
App: android
Event: restart
Description: restart
Save
Click “New Task” -> add a name for the task “Data Restart” -> Save
Click “Add Task” (The plus icon on the bottom) -> Click “Net” -> Mobile Data -> In “Set” field chose Toggle -> Save
Add the same task one more time: Click “Add Task” (The plus icon on the bottom) -> Click “Net” -> Mobile Data -> In “Set” field chose Toggle -> Save
Let the Tasker App run on background
When you send a email to the K-9 email app with your selected subject title you data will toggle on/off
Use higher performing Android devices for better execution. Sometimes apps may crash on older phones.
With some Android phones you will not be able to get a new IP address by simply restarting the data settings. However, switching airplane mode on and off also gets you a new IP every time. This method seems to be more consistent across different devices. You can automate this task with Tasker as well. Just follow these instructions when setting up a task for your profile:
Click “New Task” -> add a name for the task “Data Restart” -> Save
Click “Add Task” (The plus icon on the bottom) -> Click “Net” -> Airplane mode -> In “Set” field chose Toggle -> Save
Add the same task one more time: Click “Add Task” (The plus icon on the bottom) -> Click “Net” -> Airplane mode -> In “Set” field chose Toggle -> Save
I wrote this a while ago. Thread is "turn flashed to verizon into
VPN server" or something like that. See if I can post a link. The directions for K-9 might not be 100%... Im at the beach right now and the original directions were for Notify My Android which shut down shop last month.