Page 1 of 1
Minecraft Server Information (No Plugins Needed)
Posted: Thu Jun 21, 2012 7:51 pm
by axas
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
Re: Minecraft Server Information (No Plugins Needed)
Posted: Thu Jun 21, 2012 8:17 pm
by jacek
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)
Posted: Thu Jun 21, 2012 8:32 pm
by axas
They have said no, so that is it, thank you for the anwser.
Re: Minecraft Server Information (No Plugins Needed)
Posted: Thu Jun 21, 2012 9:14 pm
by jacek
axas wrote:They have said no, so that is it, thank you for the anwser.
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.
Re: Minecraft Server Information (No Plugins Needed)
Posted: Thu Jun 21, 2012 9:20 pm
by axas
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
Re: Minecraft Server Information (No Plugins Needed)
Posted: Thu Jun 21, 2012 10:35 pm
by jacek
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)
Posted: Thu Jun 21, 2012 10:36 pm
by axas
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)
Posted: Thu Jun 21, 2012 10:38 pm
by jacek
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)
Posted: Thu Jun 21, 2012 10:46 pm
by axas
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)
Posted: Fri Jun 22, 2012 1:28 am
by jacek
axas wrote:Well file_get_contents() is also blocked, pff it would probebly be easier to change the hosting at this rate.
With that amount of pointless restrictions I thing that would probably work out for the best.
Re: Minecraft Server Information (No Plugins Needed)
Posted: Sun Jun 24, 2012 12:12 am
by Helx
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