-
Notifications
You must be signed in to change notification settings - Fork 196
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
socket_create(): Unable to create socket [10047]: An address incompatible with the requested protocol was used #27
Comments
Hello, I do not use any windows machines so I can not test this but it seems to be a problem with your hosts configuration. Please see: https://stackoverflow.com/questions/2370388/socketexception-address-incompatible-with-requested-protocol |
Just found out that SOCK_DGRAM is not supported in Windows. The code has to be modified to enable support for windows. Reference: https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/ |
Could you share your changes? Maybe I can include them in the next version. |
Can you please try to change and check if that works on a windows machine? |
No |
Hello, By changing a couple of lines I solved it.
then,
then,
then,
in Thanks a lot. |
Hello! @MasumNishat solution works. Could you add it in the new version? |
@MasumNishat If you create a pull-request I'm happy to merge these changes into a new release. |
Hey,
I am trying to replicate the example given in Readme.
But I am stuck up with this error.
Type: ErrorException
Message: socket_create(): Unable to create socket [10047]: An address incompatible with the requested protocol was used
I haven't changed anything in the library.
Using PHP 8.0.1
OS: Windows 10
Help is appreciated.
The text was updated successfully, but these errors were encountered: