Hello
I have used your tutorial to write a MC serv er information. It works like a treat!
Problem is, when I try to use it on my website, it just falls apart. What I mean is that the script is unable to connect to the server to get needed information. It works fine on localhost. I have contacted my server provider, and they say that the server supports fsockopen(), but their firewall will block eveyrhing apart from port 80.
Is there a way round it to get that script working on the web server?
Thanks
Minecraft Server Information (No Plugins Needed)
Re: Minecraft Server Information (No Plugins Needed)
Not if the port is blocked no I would ask your host to unblock it if you can.
Re: Minecraft Server Information (No Plugins Needed)
They have said no, so that is it, thank you for the anwser.
Re: Minecraft Server Information (No Plugins Needed)
Yeah sorry there is not really a work around. Well if you can configure your Minecraft server to run on port 80 it would work then but that's not the best solution.axas wrote:They have said no, so that is it, thank you for the anwser.
Re: Minecraft Server Information (No Plugins Needed)
Well, Im guessing that the MC hosting company would not be happy then
I have another question, is there a way of having the file with function be hosted on a server which doesnt have minecraft port blocked, and use it to display it on second server? I know that by using include statment will not work as its blocked in settings
I have another question, is there a way of having the file with function be hosted on a server which doesnt have minecraft port blocked, and use it to display it on second server? I know that by using include statment will not work as its blocked in settings
Re: Minecraft Server Information (No Plugins Needed)
You could use it as a kind of proxy, so you make a script that outputs the data and from your main server you can use file_get_contents() to get it. But why not just host the entire thing on the server without the block ?
Re: Minecraft Server Information (No Plugins Needed)
Because the server which has no block has something diffrent on it and a diffrent domain name connected to it and moving stuff around is not an option
Re: Minecraft Server Information (No Plugins Needed)
You are pretty stuck then. It would be pretty slow to proxy it via the other server so I would only use that as a last resort.
Re: Minecraft Server Information (No Plugins Needed)
Well file_get_contents() is also blocked, pff it would probebly be easier to change the hosting at this rate.
Re: Minecraft Server Information (No Plugins Needed)
With that amount of pointless restrictions I thing that would probably work out for the best.axas wrote:Well file_get_contents() is also blocked, pff it would probebly be easier to change the hosting at this rate.
Re: Minecraft Server Information (No Plugins Needed)
I like my host, but they block everything (lol)
But that why I use one of my Minecraft server's complementary web server's to do all the stats.
But the only problem is that you can't use Minecraft servers with Cloudflare, so I had to make a new A DNS forwarding to it, so it has even more requests :<
Hehe, a 150 player-capable server down to 30 :/
(even though my server gets deserted at times)
EDIT: I just realized I could have used the CDN server
But that why I use one of my Minecraft server's complementary web server's to do all the stats.
But the only problem is that you can't use Minecraft servers with Cloudflare, so I had to make a new A DNS forwarding to it, so it has even more requests :<
Hehe, a 150 player-capable server down to 30 :/
(even though my server gets deserted at times)
EDIT: I just realized I could have used the CDN server