• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Solved Server status OFFLINE?

Guxi

Developer
Joined
Mar 17, 2012
Messages
128
Reaction score
12
Location
Croatia
I compiled TFS 1.2 and successfully started tibia server without any problems except Server Status not working properly.
My dedicated is running on DEBIAN 7.5 Wheezy (oldstable).

WEB (Gesior AAC \ 2012) Is showing 'Server Offline' while it's obviously up and running & fully working.
Otservlist.org also seem to fail to get Server Status and it displays OFFLINE.

Ofcourse, before posting this thread I've tried multiple solutions to fix this issue, but no success .

What have I tried?
  1. IPTABLES; Allow all TCP/UDP traffic (to make sure that iptables aren't blocking serverstatus protocol port)
  2. Config.lua; statustimeout set to 1
  3. Changing status protocol port to 7373 in config.lua (changed it back to default)
  4. Changing a line in GesiorAAC that's creating a new instance of server status class.
I really have no idea what's happening.
Also one interesting info that might be helpful, when Tibia server is online, if you try to connect to the web you would get into the infinite loop and the web wouldn't load. I think this is where is happens:
PHP:
while (!feof($sock))
                    $answer .= fgets($sock, 1024);


Thank you for your time :)
 
statusPort is undefined, renaming it to statusProtocolPort should fix your issue.
Thanks for the reply,
PHP:
$statusInfo = new ServerStatus($config['server']['ip'], $config['server']['statusProtocolPort'], 1);
Again, when tibia server is down webpage shows OFFLINE as it should, but when i start the tibia server - webpage just keeps loading in infinite loop (i think thats the loop which i specified above).
Also i tried to do this:
PHP:
$statusInfo = new ServerStatus("127.0.0.1", 7171, 1);
PHP:
$statusInfo = new ServerStatus("<Public IP>", 7171, 1);
 
Back
Top