Skip to content Skip to sidebar Skip to footer

Stream Audio Files From My Home Computer To My Website

Hello! I have a couple of questions regarding a website I have been building that requires audio files to be echoed onto my HTML using PHP after referencing my SQL database. To beg

Solution 1:

First of all its not recommended to host files from home computer

  • You can't keep your computer on 24/7

  • You can't have over 99% uptime from your ISP

  • You won't get 100mbps or 1gig/s port at home so that users can listen your audio seamlessly

If you still want to continue with this, you need static IP or Domain pointed to your PC, Port 80 (Apache) must be open. Your files in database will point to http://(your-ip / domain-of-your-pc)/filepath where filepath is folder inside your xampp / wamp.

Static IP : WAN IP from your internet provider which won't change on reconnection everytime.

Tip :

  • you can use NO-IP if you don't have static ip or seprate domain to your PC.
  • You can still point 1 subdomain to your PC ip like data.yourdomain.com which will look some professional :)

Solution 2:

I would look to cloud storage - there are many engines that give very good prices / some free. For example Amazon S3, Box, DropBox etc. I have over 50Gb free storage at the moment and many of these providers offer http access to shared directories - as long as you are not breaking any copyright laws etc.

Solution 3:

This requires several steps and decent upload bandwidth.

  1. Configure your router to accept port 80 requests and forward it to your PC
  2. In your live website you would need to reference audio files using your public IP like this <source src="http://24.35.158.64/audio/track01.mp3" type="audio/mp3">
  3. Configure apache to listen for that IP address and route it to your MP3 folder

Depending on your ISP this will either be possible or impossible.

Post a Comment for "Stream Audio Files From My Home Computer To My Website"