Nice application - may I offer a suggestion for dynamic IPs?

Questions? Suggestions? Need help? Talk about anything related to Yawcam...
Post Reply
supremeox
Posts: 1
Joined: Sun Sep 07, 2008 6:38 am

Nice application - may I offer a suggestion for dynamic IPs?

Post by supremeox »

This is a neat little webcam app. No bells, no whistles, just what you need to run a webcam without hanging every option in the world on it - yet giving the options that you really want like FTP/Streaming/HTTP, etc.

But like many others, my ISP hands me a dynamic IP. Sure, I can register with a service like you suggest in the FAQ and this forum, but since Yawcam already has the option to check the IP address on startup, how about an option to upload the IP address as a PHP file when the program is started? If I'm not mistaken, all you'd need to upload is something like:

(ip_address.php)
<?php
$ip_address = "xxx.xxx.xxx.xxx:xxxx";
?>

The webcam URL can include the php file when it opens, and build a simple redirect page:

(webcam.php)
<?php
include("ip_address.php");
echo "<meta http-equiv =refresh content = '1;url=http://".$ip_address.">";
?>

Direct your viewers to "http://ww.yourisp.com/webcam.php", and voila!, no outside service required.

Of course I'm just a hack at all this, but it seems like a reasonable solution. I use something similar on my website with my music player (not a dynamic IP situation, but uploading a small PHP file called by my home page to display what's currently playing on my computer - it's at http://www.darinvolpe.com.)

Thanks for the great program!
Post Reply