Is there a way to ping certain server:port?


lastofavari
 Share

Recommended Posts

This script bellow runs well on my local machine, but on the hosting it's always "timed out":

    <?php

ini_set( "display_errors", 0);

$info[] = array('name' => 'SERVER', 'address' => 'IP', 'port' => 'PORT');

$ic = sizeof($info);

$timeout = 3;

while($ic--)

    echo (fsockopen("piecefulland.no-ip.org", 25565, $errno, $errstr, $timeout))? '<span style="color: blue; font-weight: bold;">ONLINE</span>' : '<span style="color: darkred; font-weight: bold;">OFFLINE</span>';

?>

Thanks!

Link to comment
Share on other sites

We have a firewall on all of our systems that block requests (in or out) for any non-standard port. If I had to guess I would say the port you're trying to reach is not allowed through the firewall.

It shouldn't be an issue getting the port opened on your server though you would need to submit a ticket for this so we can escalate it to our sysadmin department for review. Please submit a ticket at https://support.hawkhost.com, provide us the path to the script(s), the port(s) you'd like opened, and any other relevant info and we'll get this taken care of for you! :)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share