Send a text message with Twilio when your IP address changes
I don’t have a static IP, but with a cable modem, it rarely changes (as opposed to when I had DSL it changed weekly). The fact that it changes so rarely is what frustrates me - it always catches me off-guard.
I feel lost when I’m remote and I can’t get to my home network, so I wrote an app that: runs every 5 minutes, determines if I have a new IP, and if so, sends me a text message with the new IP.
I’ll summarize it down to 2 lines of c#:
var twilio = new TwilioRestClient(accountSID, authToken);
var msg = twilio.SendSmsMessage(TwilioNumber, MyCellNumber, newIP);
It’s literally that simple. Check out Twilio.com for more info about the texting service.
Read other posts