Jump to content
  • 0
AHMADSHIDQI

[WEB] Login, Char, Map Status

Question

Someone can help me?

im using 1 WebHost and 1 VPS

 

1 Webhost for my CP

1 VPS for my server

 

i already setup and WebHost can connect SQL to my server, BUT

when i start my server,

 

- login

- char

- map

 

cant detect status online server, but still can detect player online, maybe someone can help me how to fix it? so CP in my webhost can detect login,char,map as ONLINE(Green Light), i already setup PORT and hostname in my Flux Config, but still cant detect as Online u,u

Link to comment
Share on other sites

7 answers to this question

Recommended Posts

  • 0

already check port, its ok no prob with my port

 

A good way to check this would be to use a port script on your website. Throw this code into a php file and visit it in your browser:

$timeout = "1";
$portgen[1] = "6900";	$servicegen[1] = "Login:";		$ipgen[1] ="ip"; 
$portgen[2] = "1234";	$servicegen[2] = "Char:";		$ipgen[2] ="ip"; 
$portgen[3] = "1235";	$servicegen[3] = "Map:";		$ipgen[3] ="ip";
$portgen[4] = "3306";	$servicegen[4] = "SQL:";		$ipgen[4] ="ip";
$portgen[5] = "80";	$servicegen[5] = "Self:";		$ipgen[5] ="127.0.0.1";
$portsgen = count($portgen); 
$portsgen = $portsgen + 1; 
$countgen = 1; 
$main = ""; 
while($countgen < $portsgen){ 
	$fpgen = @fsockopen("$ipgen[$countgen]", $portgen[$countgen], $errno, $errstr, $timeout); 
        if (!$fpgen) { 
            $main .= "$servicegen[$countgen] <font color='red'>Offline</font> "; 
        } else { 
            $main .= "$servicegen[$countgen] <font color='green'>Online</font> "; 
            fclose($fpgen); 
        } 
    $countgen++; 
}   
$main .= ""; 
print $main;

If the first three say offline, when your server is clearly running, then your webhost has only opened up particular ports (ftp, ssh, sql, etc). This is quite common amongst hosting providers that know what they're doing.

  • Upvote 2
Link to comment
Share on other sites

  • 0

Someone can help me?

im using 1 WebHost and 1 VPS

 

1 Webhost for my CP

1 VPS for my server

 

i already setup and WebHost can connect SQL to my server, BUT

when i start my server,

 

- login

- char

- map

 

cant detect status online server, but still can detect player online, maybe someone can help me how to fix it? so CP in my webhost can detect login,char,map as ONLINE(Green Light), i already setup PORT and hostname in my Flux Config, but still cant detect as Online u,u

 

you can request an Open Port to your service provider. 

Link to comment
Share on other sites

  • 0

you can request an Open Port to your service provider.

Most service providers will deny any request to open additional ports on their webservers/network - in most cases additional ports would violate their security agreement/terms of service.

 

AHMADSHIDQI, if you've got RAM to spare on your VPS, just install apache/php and serve your site from there. It'll reduce costs and headaches.

Link to comment
Share on other sites

  • 0

 

already check port, its ok no prob with my port

 

A good way to check this would be to use a port script on your website. Throw this code into a php file and visit it in your browser:

$timeout = "1";
$portgen[1] = "6900";	$servicegen[1] = "Login:";		$ipgen[1] ="ip"; 
$portgen[2] = "1234";	$servicegen[2] = "Char:";		$ipgen[2] ="ip"; 
$portgen[3] = "1235";	$servicegen[3] = "Map:";		$ipgen[3] ="ip";
$portgen[4] = "3306";	$servicegen[4] = "SQL:";		$ipgen[4] ="ip";
$portgen[5] = "80";	$servicegen[5] = "Self:";		$ipgen[5] ="127.0.0.1";
$portsgen = count($portgen); 
$portsgen = $portsgen + 1; 
$countgen = 1; 
$main = ""; 
while($countgen < $portsgen){ 
	$fpgen = @fsockopen("$ipgen[$countgen]", $portgen[$countgen], $errno, $errstr, $timeout); 
        if (!$fpgen) { 
            $main .= "$servicegen[$countgen] <font color='red'>Offline</font> "; 
        } else { 
            $main .= "$servicegen[$countgen] <font color='green'>Online</font> "; 
            fclose($fpgen); 
        } 
    $countgen++; 
}   
$main .= ""; 
print $main;

If the first three say offline, when your server is clearly running, then your webhost has only opened up particular ports (ftp, ssh, sql, etc). This is quite common amongst hosting providers that know what they're doing.

 

wheres i should put in? in localhost? where? hmm can u give me tutorial? u,u

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.

Guest
Answer this question...

×   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.



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.