#34028 [Opn->Fbk]: socket_create_listen doesn't listen on all interfaces
| From: | tony2001@php.net | Date: | Sun, 07 Aug 2005 19:21:31 +0000 |
| Subject: | #34028 [Opn->Fbk]: socket_create_listen doesn't listen on all interfaces | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-83140@lists.php.net to get a copy of this message | ||
ID: 34028
Updated by: tony2001@php.net
Reported By: alex at cedevices dot com
-Status: Open
+Status: Feedback
Bug Type: Sockets related
Operating System: Windows 2000
PHP Version: 5.0.4
New Comment:
Thank you for this bug report. To properly diagnose the problem, we
need a short but complete example script to be able to reproduce
this bug ourselves.
A proper reproducing script starts with <?php and ends with ?>,
is max. 10-20 lines long and does not require any external
resources such as databases, etc.
If possible, make the script source available online and provide
an URL to it here. Try to avoid embedding huge scripts into the report.
Previous Comments:
------------------------------------------------------------------------
[2005-08-07 20:43:15] alex at cedevices dot com
Description:
------------
Standard latest xampp setup (including PHP 5.0.4).
When using socket_create_listen(port), it does not listen on all
interfaces as the docs indicate that it would. I was unable to connect
to the machine using anything other than localhost (127.0.0.1).
The workaround is to use socket_create, socket_bind (with 0.0.0.0 as
the address) and socket_listen to accomplish the same task.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=34028&edit=1