TP-Docs
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media

Recent

Welcome to TinyPortal. Please login or sign up.

Members
  • Total Members: 3,963
  • Latest: BiZaJe
Stats
  • Total Posts: 195,917
  • Total Topics: 21,308
  • Online today: 884
  • Online ever: 8,223 (February 19, 2025, 04:35:35 AM)
Users Online
  • Users: 0
  • Guests: 448
  • Total: 448

Teamspeak block!

Started by -Prismatic-, October 14, 2005, 11:20:45 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

jlilly

Quote from: Thurnok on May 31, 2007, 10:49:13 AM
Are you trying to use the Teamspeak Status php script?

If so, here's the steps you need to take:

1) On the Teamspeak Server (the box running the TS Server software)  go to the directory where the TS Server software is installed.

2) Open the Server.ini file and find the entry TCPQueryPort=.  Note the port being used.  This is the port that you need for the TS Status script to access the TS Server and gather information (who's on, if the server is up, etc.).  The default for this is port 51234.

3) On the router that the Teamspeak Server computer uses to access the internet, you must ensure that the port from step 2 is not blocked (generally, for most routers it needs to be in the port forwarding section).  This is a TCP port, not UDP - make the correct setting on your router.
NOTE: I'm assuming that the TS Server is already working, and therefore not mentioning anything about forwarding the "chat" port (the port that is used for xmitting voice data to/from clients)

4) On the WEB server you wish to place the Status Script, you must ensure that they allow the php function fsockopen().  If your host does not allow this function, you will not be able to use the script.  Some hosts require you to provide them the URL and PORT for use with the fsockopen() function.  They then generally only allow a socket to be opened for that domain and that port.  If it changes, you'll have to contact them again to have them change the domain/port they allow fsockopen() to access.  If your host does not restrict the fsockopen() function at all, then you are in great shape.

5) In the TS Status Script file (ts_viewer.php) make sure the the line that starts like this:
$ts_viewer->show_ts_viewer(
looks like this:
$ts_viewer->show_ts_viewer(<server domain>, <ts chat port>, <ts tcp status port>, <ts server password>)

<server domain> = domain of the Teamspeak Server
<ts chat port> = the UDP port the TS Server and TS Clients use for "chatting" on
<ts tcp status port> = the TCP port from step 2
<ts server password> = the password (if you have one) for your TS Server for a guest to connect with, otherwise use a null string ("")

Example:
$ts_viewer->show_ts_viewer("mytsserver.com", 8767, 51234, "myTSserverPwd")

That's pretty much it.  If you get "Server Offline" in your block from the script and you are sure that the TS Server is running and its router has the TCP Query Port open (from step 2), then the WEB server is unable to use fsockopen() and you must get your Host provider to allow it.


First off, wow.  This is ver thourough.  However, I am still showing as offline.  I rent a dedicated box from DefConServers.com.   Should I contact them about the fsockopen()? 

This is what I have currently
public_html/smf/teamspeak/

/* ---------- Teamspeak-Viewer - Anfang ---------------*/

   $ts_viewer->set_Viewer("BH Clan Gaming", "http://www.bhclangaming.com");
   $ts_viewer->set_Channels();
   $ts_viewer->show_ts_viewer("74.86.11.99", 8767, 51234, "");
   
/* ---------- Teamspeak-Viewer - Ende ---------------*/


Another question, do I need to put anything in the "$ts_viewer->set_Channels();" section?  Just curious.

Thanks in advance.  I have been looking for this mod and I really hope I can get it working.

biggsy

i had this problem, in the end my host was blocking the port, 90% sure your host / webspace provider will not open the port for you.

I had to move hosts, or maybe u can host the teamspeak viwer files on another server and try using including that from another server, allthough if u do that u cant use a standard php include command, and im not sure how to acheive this but i know it can be done.

I moved my entire hosting becuase of the teamspeak block.

Hope this helps

jlilly

#262
Just emailed defcon.. they said they do not block any ports to customers.  all is open.  My webhost provider advised it is not either and they allow the php function.  I am not sure how else to proceed here.  Any ideas?

IchBin

Does it work if you point directly to the file in your browser?

jlilly

nope still says it is offline.  Hrmmmm

IchBin

If its offline its usually because either you have the wrong paths or something in your script, or your TeamSpeak server/host server is blocking something. If you'd like to PM me your TeamSpeak info I can try it out on my test site.

jlilly

hrmm.. took me damn near 30 minutes to read the whole thread... so garbled..

I am wanting to know about the autorefresh (just the TS Viewer)
and
a Login Script that I can place at the bottom of the TS Block.

I couldn't tell what is what and if I should use this or that. 

Thanks again for any help.. if anyone can point out the URL for the d/l's that'd be great.. thanks!

jlilly



IchBin

Well, I'm not going to go through 28 pages for you, so perhaps you could point to what you are talking about?

This website is proudly hosted on Crocweb Cloud Website Hosting.