Ask a Question related to PHP Bugs, Design and Development.
-
mayank_10000 at yahoo dot com #1
#34028 [Com]: socket_create_listen doesn't listen on all interfaces
ID: 34028
Comment by: mayank_10000 at yahoo dot com
Reported By: alex at cedevices dot com
Status: No Feedback
Bug Type: Sockets related
Operating System: Windows 2000
PHP Version: 5.0.4
New Comment:
i am using php 5.0.4 Ver. and i want to broad cast msg in local network
using php so i am using this function
$socket = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);
but if i am run this php file then generat error on page this
Fatal error: Call to undefined function socket_create() in C:\Program
Files\Apache Group\Apache2\htdocs\mayank\socket\examp1.php on line 3
what i do for it pls reply me
Previous Comments:
------------------------------------------------------------------------
[2006-08-03 13:27:50] jarcarlos at sapo dot pt
I have the same problem with PHP 5.1.4 version. The soket can't receive
connections from internet, but can do it in local network. But when i
put 0.0.0.0 in address socket_bind I begin to receive connections.
In some (many) connections i receive warning in socket_write and
socket_read because "unable to write/read from socket [0]".
My operating system is: Windows XP.
------------------------------------------------------------------------
[2005-08-15 01:00:04] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
------------------------------------------------------------------------
[2005-08-07 21:21:29] [email]tony2001@php.net[/email]
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.
------------------------------------------------------------------------
[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 [url]http://bugs.php.net/?id=34028&edit=1[/url]
mayank_10000 at yahoo dot com Guest
-
How do I listen on several addresses?
I have a server with several multi-homed adapters. I want to listen on BOTH 80.23.54.211 and localhost. In fms.ini I have set ADAPTOR.HOSTPORT =... -
LISTEN UP, FOLKS - you're going to want to hear this!
I have been poring over this issue for days, and getting extremely pissed - but I finally solved the problem! This may not apply to all of you - but... -
Coldfusion to listen only 127.0.0.1
Hi, I made out-of-the-box installation of Coldfusion MX7. I would like it to listening only localhost and not all the IP's/interfaces. I tried... -
MySQL won't listen
I set up a small LAN with 2 machines (acer.loc IP:192.168.1.33 and hppav.loc IP: 192.168.1.34) for test purposes. Each client can access its own... -
Why MS Doesn't Listen To Themselves?
Go download the Windows User Experience Guidelines at www.microsoft.com/downloads and have a read. I am quite amazed at how much babbling is...



Reply With Quote

