View Full Version : Port status!
03-15-2008, 11:36 PM
I have server for CS 1.6, and I need information about current status (IP) of my server (on/off) for users that visit my site.
03-16-2008, 01:05 AM
Psychostats (http://www.psychostats.com/) used to distribute a PHP script called Psychoquery that included a class that could be used to get current server information from a CS server. After a quick glance on the website, I don't see a download link, but there are people talking about it in their forums so maybe they package it with the main program.
03-16-2008, 10:05 AM
One i made:
03-16-2008, 06:57 PM
There's a lot of information on how to query servers on the valve developer site (http://developer.valvesoftware.com/wiki/Server_queries).
To ping a server:
$fp = fsockopen ( 'udp://18.104.22.168', 27075, $errno, $errstr, 2 );
fwrite ( $fp, "\xFF\xFF\xFF\xFF\x69" );
if ( fread ( $fp, 6) == "\xFF\xFF\xFF\xFF\x6A\x00")
// Server is up
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.