php - does fsockopen only allow certain servers? -
That's why I recently made a goal to contact Hostgator about a previous plugin that I did not have "online" or " Offline "depends on the server's status
Now, here's the problem.
The hostgator was disabled and after bothering them, I enabled it. But not all server ips and ports work with it?
For example:
& lt ;? Php $ ip = "play.magicacraft.net"; $ Port = "25567"; $ Online = @fsockopen ($ ip, $ port, $ errno, $ errstr, 200); If ($ online> = 200) {echo & lt; A href = "#" class = "MPSververOnline" & gt; Online & lt; / A & gt; '; } Else {echo '& lt; A href = "#" class = "MPServer_offline" & gt; Offline & lt; / A & gt; '; }? & Gt; Gives me this as online.
If I use any other IP and IP server like: $ port = 72.20 .55.85 "; $ ip =" 25570 "; It never says offline that it is online
Is it a fault on my end or on them? Sites such as can use this information and I can not.
Thank you for your time
Did you check to make sure Is not blocked by port firewall / iptables ?
Try the default example to see if this port block may be a problem by using port 80
Comments
Post a Comment