Jump to content
  • 0

[WEB] Login, Char, Map Status


Question

Posted

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

7 answers to this question

Recommended Posts

  • 0
Posted

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
  • 0
Posted

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. 

  • 0
Posted

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.

  • 0
Posted

 

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...