Page 1 of 1

When i connect to server with sockets.

Posted: Wed May 17, 2006 8:14 pm
by langeda9
When i connecting to a server fks
ip:64.147.171.197:27950
port:27964

i cant make a connection. Is there something else and the IP i shall write in host?

please help
NOTE: IT IS PHP SOCKETS IM CONNECTING WITH

Posted: Thu May 18, 2006 9:23 pm
by ^misantropia^
Err... is this what you need?

Code: Select all

$host = '64.147.171.197';
$port = 27964; // NOTE: the Q3 default is 27960
$sock = @fsockopen("udp://$host", $port, $errno, $errstr);
if (!$sock) {
    echo "Error $errno: $errstr\n";
    exit;
}
// ...
fclose($sock);

Re: When i connect to server with sockets.

Posted: Thu May 18, 2006 9:33 pm
by Fjoggs
langeda9 wrote:When i connecting to a server fks
ip:64.147.171.197:27950
port:27964
NOTE: IT IS PHP SOCKETS IM CONNECTING WITH
that's not an ip, that's an ip with a port, remove the 27950.