• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Windows "Players online" problems

Glidarn

Member
Joined
May 9, 2009
Messages
970
Reaction score
16
Location
Åkersberga, Sweden
On my page it says "0 players online" when i have like 50 players online and i have heard taht i should change "localhost" to my ip to the server in config-functions.php

Lua:
$sock = @fsockopen("localhost", $config['server']['statusPort'], $errno, $errstr, 1);

and "0" to "1" in layout.php

Lua:
if($config['status']['serverStatus_online'] == 0)

but then it shows "server offline", anyone know why it does'nt work?

// Glidarn
 
Last edited:
PHP:
$sock = @fsockopen("178.xx.xx.xx", $config['server']['statusPort'], $errno, $errstr, 1);

^IP Static.

That's all you need to do.

PHP:
if($config['status']['serverStatus_online'] == 1)
 
Back
Top