#36036 [Opn->Fbk]: fsockopen will not connect with bindto option

From: Date: Mon, 16 Jan 2006 20:46:31 +0000
Subject: #36036 [Opn->Fbk]: fsockopen will not connect with bindto option
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-92016@lists.php.net to get a copy of this message
ID: 36036 Updated by: tony2001@php.net Reported By: jason at eblasterpro dot com -Status: Open +Status: Feedback Bug Type: Sockets related Operating System: Mandrake 10.2 PHP Version: 5.1.2 New Comment: Remove the @ from the function call and post the error you get (if any). And make sure your 10.1.14.1 is *your* IP and port #9000 is not blocked by a firewall (or better just turn off any firewalls/filters). Previous Comments: ------------------------------------------------------------------------ [2006-01-16 21:41:23] jason at eblasterpro dot com Description: ------------ I passed this option $options = array('socket' => array('bindto' => '10.1.14.1:9000')); into $context = stream_context_create($options); $fp = @$openfunc($this->addr, $this->port, $errno, $errstr, $timeout, $context); Which caused my program to stop connecting all together. The ip and port are valid. Expected result: ---------------- Pear Socket.php has a place for options to be passed in, so I thought it would bind Actual result: -------------- Could never connect to remote machine ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36036&edit=1

« previous php.bugs (#92016) next »