We quite often see new users of RadioDJ asking why that the request script doesn’t work on their website.

It could be a number of factors and its probably down to port 3306 not being open on your website servers firewall.

Important: Hosts such as GoDaddy, HostGator and most free PHP web hosts will never open the port 3306 for you no matter how much you ask them to, You may have to pay another host for a server with that access.

It could also be that port 3306 isn’t unblocked on your home router, Most routers allow you to configure the Firewall/Port settings.

You need to open port 3306 & point the router towards the machine running the MySQL server

(e.g. 192.168.0.18)

Once you have the ports open you then need to point any website scripts to your external IP

########### edit settings #########
$dataip = "97.95.227.237"; // IP address
$database = "your_db_name"; // Databse name
$username = "your_db_user";  //database user name
$userpass = "your_db_pass"; // database password
$dataport = "3306";  // database port number

If you’ve entered all your details properly and confirmed the ports are open you should now be seeing your list of songs on your website.

Without access to the MySQL port 3306 you will NOT get any PHP web-scripts running successfully.

I’ve tried explaining this as best I can of course if you get stuck Google is your friend.

Last updated on: 11th June 2018
at 15:43 PM Europe/London

  Translate