Kansy
22-12-2006, 17:52
Hello I cant pay for a TS server so I want to configure this to enter into the TS public server 1 when i configure it It says me
"The server is currently offline or unreachable!"
<?php
//Include the ACTSViewer Class
require("actsviewer.php");
//Initialize the object
$ts = new actsviewer();
//Set the hostname to the address of your server (e.g. example.com or 123.123.123.123) but DO NOT include the port
$ts->setHost("62.146.116.194");
//Set the TCP-Query port to the one of your server (51234 by default). Look in your server.ini for this port or ask your provider for it
$ts->setTCP(51234);
//Set the UDP-Port to the one of your server (8767 by default, the one at the end of your server address)
$ts->setUDP(8767);
//If your browser runs into problems displaying the images you should use the following line to point it to the right directory
//$ts->setHost("http://example.com/path/to/your/actsviewer");
//Set the output template if you have created your own or do not want to use the default one
//$ts->setTemplate("tpl_absurdcoding");
//Use GZip output compression (increases performance heavily) It is recommended to leave this on if you have no problems with displaying
//$ts->setGZip(1);
//Use verbose mode. This defines what the script will show if the server is not reachable. If you are in verbose mode it will show a real error message otherwise only something like "Server is currently not available" will be shown
//$ts->verbose();
//This finally displays the server view
$ts->display_server();
//If you instead want to show only one channel then comment out the above line and use the following. Give the channel id as first parameter. If you don't know what channel ID your channel has use display_server and use the channel details function to get the channel ID
//$ts->display_channel(1);
//If you have problems displaying the server or channel it could be possible that you have a connection problem. Uncomment the following line to perform a connection test that may help you fixing the problem
//$ts->connection_test();
?>
can you help me to configure this plz
"The server is currently offline or unreachable!"
<?php
//Include the ACTSViewer Class
require("actsviewer.php");
//Initialize the object
$ts = new actsviewer();
//Set the hostname to the address of your server (e.g. example.com or 123.123.123.123) but DO NOT include the port
$ts->setHost("62.146.116.194");
//Set the TCP-Query port to the one of your server (51234 by default). Look in your server.ini for this port or ask your provider for it
$ts->setTCP(51234);
//Set the UDP-Port to the one of your server (8767 by default, the one at the end of your server address)
$ts->setUDP(8767);
//If your browser runs into problems displaying the images you should use the following line to point it to the right directory
//$ts->setHost("http://example.com/path/to/your/actsviewer");
//Set the output template if you have created your own or do not want to use the default one
//$ts->setTemplate("tpl_absurdcoding");
//Use GZip output compression (increases performance heavily) It is recommended to leave this on if you have no problems with displaying
//$ts->setGZip(1);
//Use verbose mode. This defines what the script will show if the server is not reachable. If you are in verbose mode it will show a real error message otherwise only something like "Server is currently not available" will be shown
//$ts->verbose();
//This finally displays the server view
$ts->display_server();
//If you instead want to show only one channel then comment out the above line and use the following. Give the channel id as first parameter. If you don't know what channel ID your channel has use display_server and use the channel details function to get the channel ID
//$ts->display_channel(1);
//If you have problems displaying the server or channel it could be possible that you have a connection problem. Uncomment the following line to perform a connection test that may help you fixing the problem
//$ts->connection_test();
?>
can you help me to configure this plz