SRCDS Steam group


RCON Help!
#1
Exclamation 
Hi,
I am having some difficulty with an RCON Command that is being sent from my website
through an auto donate PHP code. Once you have donated, it sends the RCOn command
like this:

PHP Code:
define'SQ_SERVER_ADDR''xx.xxx.xxx.xx' );
    
define'SQ_SERVER_PORT'27015 );
    
define'SQ_TIMEOUT',     );
    
define'SQ_ENGINE',      SourceQuery :: SOURCE );
    
// Edit this <-
    
    
$Query = new SourceQuery( );
    
    try
    {
        
$Query->ConnectSQ_SERVER_ADDRSQ_SERVER_PORTSQ_TIMEOUTSQ_ENGINE );
        
$Query->SetRconPassword'xxxxxxxx' );
        
$Query->Rcon 'say A donation has been received from SteamID: '.$steamid.'. Donation amount: '.$amount.'$.' );
        
$Query->Rcon 'ulx adduserid '.$steamid.' donator' ); 


But, for some reason whenever I test it, I get this error when the RCON runs:

Code:
Can't connect to RCON server: Connection timed out


The webserver connects fine with PayPal, and I can ping it and what not, and all of the required ports are open on my gameserver.


Please help!
Reply
#2
(03-23-2013, 11:51 PM)Samg381 Wrote:  Hi,
I am having some difficulty with an RCON Command that is being sent from my website
through an auto donate PHP code. Once you have donated, it sends the RCOn command
like this:

PHP Code:
define'SQ_SERVER_ADDR''xx.xxx.xxx.xx' );
    
define'SQ_SERVER_PORT'27015 );
    
define'SQ_TIMEOUT',     );
    
define'SQ_ENGINE',      SourceQuery :: SOURCE );
    
// Edit this <-
    
    
$Query = new SourceQuery( );
    
    try
    {
        
$Query->ConnectSQ_SERVER_ADDRSQ_SERVER_PORTSQ_TIMEOUTSQ_ENGINE );
        
$Query->SetRconPassword'xxxxxxxx' );
        
$Query->Rcon 'say A donation has been received from SteamID: '.$steamid.'. Donation amount: '.$amount.'$.' );
        
$Query->Rcon 'ulx adduserid '.$steamid.' donator' ); 


But, for some reason whenever I test it, I get this error when the RCON runs:

Code:
Can't connect to RCON server: Connection timed out


The webserver connects fine with PayPal, and I can ping it and what not, and all of the required ports are open on my gameserver.


Please help!

Edit: I can do a ping to and from the webserver to the gameserver
Reply
#3
open port TCP of your gameserver . to use rcon !
[Image: b_350_20_692108_381007_FFFFFF_000000.png]
[Image: b_350_20_323957_202743_F19A15_111111.png]
Hellenic SF Gameservers To Do List
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)