Jump to content
  • 0

[WEB] Login, Char, Map Status


AHMADSHIDQI

Question


  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  64
  • Reputation:   1
  • Joined:  02/18/12
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  11
  • Topics Per Day:  0.00
  • Content Count:  298
  • Reputation:   47
  • Joined:  03/30/13
  • Last Seen:  

maybe the webhost port are closed

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  64
  • Reputation:   1
  • Joined:  02/18/12
  • Last Seen:  

already check port, its ok no prob with my port

Link to comment
Share on other sites

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1614
  • Joined:  03/26/12
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  122
  • Reputation:   2
  • Joined:  11/20/11
  • Last Seen:  

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

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1614
  • Joined:  03/26/12
  • Last Seen:  

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

  • Group:  Members
  • Topic Count:  28
  • Topics Per Day:  0.01
  • Content Count:  64
  • Reputation:   1
  • Joined:  02/18/12
  • Last Seen:  

 

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

  • 0

  • Group:  Forum Manager
  • Topic Count:  282
  • Topics Per Day:  0.06
  • Content Count:  3122
  • Reputation:   1614
  • Joined:  03/26/12
  • Last Seen:  

As i said, put it in a php file - you should put this on your webhost.

Link to comment
Share on other sites

×
×
  • Create New...