#23066 [Fbk->Csd]: fsocketopen fail when connecting to server where calling script run

From: Date: Sun, 06 Apr 2003 16:48:03 +0000
Subject: #23066 [Fbk->Csd]: fsocketopen fail when connecting to server where calling script run
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-37221@lists.php.net to get a copy of this message
ID: 23066 User updated by: garfield_fr at tiscali dot fr Reported By: garfield_fr at tiscali dot fr -Status: Feedback +Status: Closed Bug Type: Sockets related Operating System: Windows 2000 PHP Version: 4.3.1 New Comment: After lot of test with my Admin network, I found the "bug" is due to a config "anti spoofing" on server .... So it's not a bug !!!! sorry, I close the report.... Previous Comments: ------------------------------------------------------------------------ [2003-04-06 06:10:09] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip A lot of bugs have been fixed since 4.3.1 in this snapshot (regarding socket stuff) ------------------------------------------------------------------------ [2003-04-05 20:18:58] pollita@php.net Not enough information was provided for us to be able to handle this bug. Please re-read the instructions at http://bugs.php.net/how-to-report.php If you can provide more information, feel free to add it to this bug and change the status back to "Open". Thank you for your interest in PHP. This is *impossible* to debug without knowing the contents of client.php and server.php. ------------------------------------------------------------------------ [2003-04-05 16:18:38] garfield_fr at tiscali dot fr Config : OS : Win2000 Server HTTP : IIS5 PHP 4.3.1 ISAPI I have 2 scripts : client.php and server.php on a server. I can use these scripts by http://mysite.domain.net/server.php and http://mysite.domain.net/client.php. In fact, client.php is a test script to check server.php, a web services using nuSOAP. both scripts are using nuSOAP.php. 1/ When client.php run on server and call server.php with URL : http://mysite.domain.net/server.php I have a fsockopen error: [05-Apr-2003 22:15:10] PHP Warning: fsockopen() [<a href='http://www.php.net/function.fsockopen'>function.fsockopen</a>]: php_hostconnect: connect failed in E:\wwwwRoot\mysite\nuSOAP\nusoap.php on line 1352 [05-Apr-2003 22:15:10] PHP Warning: fsockopen() [<a href='http://www.php.net/function.fsockopen'>function.fsockopen</a>]: unable to connect to mysite.domain.net:80 in E:\wwwwRoot\mysite\nuSOAP\nusoap.php on line 1352 2/ When I use my computer to run client.php (running at http://10.0.0.11/client.php where 10.0.0.11 is my local IP) and call server.php at http://mysite.domain.net/server.php I have a good result and evry thing work fine. 3/ When I use my computer to run client.php (running at http://10.0.0.11/client.php where 10.0.0.11 is my local IP) and call server.php at http://10.0.0.11/server.php I have a good result and evry thing work fine too !!! From 1/ and 2/ I think fsockopen() can't open a connection on the server who run the calling scripts (remember, it's in ISAPI mode)...so maybe a bug here ? but from why 3/ work ? my local server is in ISAPI mode to (IIS5/W2K Pro SP3)... conclusion : fsockopen seem to fail in some case .... I think is a bug ??? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=23066&edit=1

« previous php.bugs (#37221) next »