I set up something similar-ish in the early 2000s. We lived out in the countryside, in Bourton-on-the-Water. The ground floor was a garage originally, but had been converted to storage space. For various legal reasons, the landlady couldn't advertise it as living or inhabitable space or something, but it became a 2nd living room (small, tall and thin cottage) where I could smoke, play my music and have friends round without annoying my wife. However the ex-garage doors could be easily forced open, and I had all my A/V and PC gadgets in there. So... with an early digital camera hooked up as a webcam, a PC that was running Kazaa 24/7 (you had to on a 56k dial up line
) and my T68i mobile phone, if the area of the webcam's view that encompassed the doors saw movement, it quit Kazaa (for the bandwidth), started taking pictures that were sent to a remote server, and took videos that I could try and watch on my phone before the PC was stolen
Luckily, it never saw action in a real scenario, it was more of a project to integrate various software and hardware and see what could be done.
Anyway, I digress... I've not found the txt file yet, but searching through my previous Play Store downloads, it looks like I was using
https://play.google.com/store/apps/details?id=com.rcreations.ipcamviewerBasic
It took a bit configuration to get working, and I was only able to test it on my home network. Despite port forwarding, either my home internet connection had some ports blocked, or more likely my mobile network provider was blocking me. Worth a play with, anyway.