-
Notifications
You must be signed in to change notification settings - Fork 372
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warning: socket_bind(): unable to bind address [98]: #73
Comments
Try changing the following line in testwebsock.php to have a different port number:
9001 might be a good place to start. Take a look at what ports are currently in use on your server if you don't want to just guess at which one might be open. You'll also have to edit client.html with the updated port number. Closing because this is not an issue with the library, it's a specific conflict with a server's configuration. If you still need support, please feel free to continue the discussion. |
Thank you Worked with me 👍 |
PHP Warning: socket_bind(): unable to bind address [99]: Cannot assign requested address in /var/www/html/websoc/websockets.php on line 23 I have find this issue on my aws server pls help me. |
Please do not comment on closed threads with new errors.
Especially errors that show that you haven't done any basic troubleshooting
like running netstat to see what ports are already in use.
…On Sun, Apr 15, 2018 at 9:55 AM codem360 ***@***.***> wrote:
PHP Warning: socket_bind(): unable to bind address [99]: Cannot assign
requested address in /var/www/html/websoc/websockets.php on line 23
Failed: socket_bind()
I have find this issue on my aws server pls help me.
Thanks in advance.
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub
<#73 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAPPPj6cKVCl6TJe-KoNV7tXPeL_hwfxks5to3tygaJpZM4H5RuL>
.
|
check your real ip with command "ifconfig" |
$address = 'localhost'; |
Use 0.0.0.0. And read the PHP manual's entry on socket_bind().
…On Tue, Dec 20, 2022, 8:34 AM tiagoarrf ***@***.***> wrote:
PHP Warning: socket_bind(): unable to bind address [99]: Cannot assign
requested address in /var/www/html/websoc/websockets.php on line 23 Failed:
socket_bind()
I have find this issue on my aws server pls help me. Thanks in advance.
$address = 'localhost';
—
Reply to this email directly, view it on GitHub
<#73 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAB46PSCRZGQOOLIV6EWQOLWOHGWPANCNFSM4B7FDOFQ>
.
You are receiving this because you modified the open/close state.Message
ID: ***@***.***>
|
when I try to open testwebsock.php in my localhost in linux
!/usr/bin/env php
Warning: socket_bind(): unable to bind address [98]: Address already in use in /var/www/html/websocket/websockets.php on line 23
Failed: socket_bind()
The text was updated successfully, but these errors were encountered: