Hi all,
This is one of many stories involving a current housemate who never ceases
to amaze us. If you like this, I can submit more stories about him next time
Some background
We recently had a family (1 couple and 1 infant) move into
our house which is currently being shared by my family and another housemate
who’s also a software developer.…
Husband (General Practitioner) who does a bit of coding on
the side during his free time. --> He's the main character in this story
His Wife (Radiologist) – not relevant in this story
His Son (Infant) – not relevant in this story
Me (Software Engineer)
My Wife (Homemaker) – not relevant in this story
My Son (Infant) – not relevant in this story
Housemate (Software Engineer)
The Scenario
So the husband (not from the IT industry), Keith was telling
us how he missed local TV dramas/episodes from Singapore ever since he moved
over to Perth,Australia and Keith’s got the bright idea of setting up a home
server that would record all the shows from the TV and stream it over the
internet so that he will be able to watch it while he’s here.
Since Singapore’s internet infrastructure is highly
developed and competitive enough for Keith to sign up to a Starhub Maxonline
Ultimate plan which offers speeds of up to 100Mbps download and 2Mbps upload at
a reasonable price (with no download limit), we thought that this solution
might actually work and applauded Keith for being so smart.
Consequently, I mentioned that Starhub only offers dynamic
ip addresses and me and my housemate automatically assumed that Keith would
being signing up to a web-redirection service like dydns or no-ip to get his
dynamic ip address resolved automatically.
Keith gave us an incredulous look and ask what dydns or
no-ip was… We looked at each other and asked Keith: “So how did you actually
manage to resolve the ip addresses when Starhub (the isp) resets it?”
The Objective
How do you resolve a dynamic ip address that resets
occasionally without using a managed dns service? So you can find out the correct
ip to log in to your server?
Keith’s Solution
Keith proudly explains his solution to the problem:
He coded a small service app (in VB) that runs every 15
minutes in the streaming server. This app generates an invisible browser. The browser then redirects to
one of those whatismyIp.com sites to capture his ip address. Then the browser
automatically logs into his gmail account (hardcoded username/password) and
composes an email that pastes the captured ip address and sends it back to his own
gmail account. Finally, all he needs to do is just log into his own gmail and
he will be able to find the server’s new address whenever he wants to watch
some Singapore TV.
P.s. If I remember correctly, he mentioned something about hardcoding the coordinates of the user/password and submit button box so that he can manipulate the mouse in the "invisible" browser to the correct location and enter his credentials into the input boxes and make the mouse "left-click" on the login button.
Conclusion
We looked at each other, shook our heads and silently agreed
not to discuss any IT related topics when he’s around. On a side note, we did try to tell him that there's gmail api available that allows a user to log in but he said he didnt trust other people's code. LOL
The Consolation
At least he didn’t code his own streaming software…..