Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Port status!

  1. #1
    New to the CF scene
    Join Date
    Jul 2007
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation Port status!

    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.
    Last edited by Nenad91; 03-16-2008 at 12:40 AM.

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,647
    Thanks
    2
    Thanked 406 Times in 398 Posts
    Psychostats 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.

  • #3
    Regular Coder
    Join Date
    Aug 2006
    Location
    UK, London, Dartford
    Posts
    221
    Thanks
    3
    Thanked 14 Times in 14 Posts

  • #4
    Regular Coder
    Join Date
    May 2006
    Location
    Wales
    Posts
    820
    Thanks
    1
    Thanked 82 Times in 79 Posts
    There's a lot of information on how to query servers on the valve developer site.

    To ping a server:
    PHP Code:
    $fp fsockopen 'udp://78.143.19.206'27075$errno$errstr);

    fwrite $fp"\xFF\xFF\xFF\xFF\x69" );

    if ( 
    fread $fp6) == "\xFF\xFF\xFF\xFF\x6A\x00")
    {
      
    // Server is up



  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •