Toon posts:

[php] Connectscript, ftp gaat wel. cs-server niet?

Pagina: 1
Acties:
  • 37 views sinds 30-01-2008

Verwijderd

Topicstarter
http://www.rentserver.nl/index.php?pid=servers/stats

De ftp-server en mysql server pakt tie werkelijk perfect, maar de cs-servers doet tie noway :?

De gameserver:
PHP:
1
2
3
4
5
6
7
8
9
10
<? 
    $ip="81.17.46.189"; 
    $port="27015"; 
    $fp = fsockopen ($ip, $port, &$errno, &$errstr, 30); 
        if (!$fp) { 
            echo "Offline"; 
        } else { 
            echo "Online"; 
        } 
    ?>


Hoe krijg ik dit wel voor elkaar? poorten staan goed nl...

  • D2k
  • Registratie: Januari 2001
  • Laatst online: 31-08 10:19

D2k

ik krijg toch connection refused op die poort op dat ip
en op poort 80 krijg ik wel antwoord

Doet iets met Cloud (MS/IBM)


  • D2k
  • Registratie: Januari 2001
  • Laatst online: 31-08 10:19

D2k

ik krijg net door van Yarvieh dat CS op udp draait en niet op TCP ;)

Doet iets met Cloud (MS/IBM)


Verwijderd

Topicstarter
huh das zwaar weird, want connecten met counterstrike gaat prima.....en de default poort voor cs is de 27015

ARGH das waar ook, DOM

is het mogelijk dit aan te passen zodat het ook op UDP werkt?

  • D2k
  • Registratie: Januari 2001
  • Laatst online: 31-08 10:19

D2k

www.php.net/fsockopen
Description
int fsockopen ( string hostname, int port [, int errno [, string errstr [, float timeout]]])


Initiates a stream connection in the Internet (AF_INET, using TCP or UDP) or Unix (AF_UNIX) domain. For the Internet domain, it will open a TCP socket connection to hostname on port port. hostname may in this case be either a fully qualified domain name or an IP address. For UDP connections, you need to explicitly specify the protocol by prefixing hostname with 'udp://'. For the Unix domain, hostname will be used as the path to the socket, port must be set to 0 in this case. The optional timeout can be used to set a timeout in seconds for the connect system call.
ff verder kijken dan je neus lang is

Doet iets met Cloud (MS/IBM)


Dit topic is gesloten.