1
Good morning.
Next, I downloaded the following project as an example to create a Websocket:
http://www.nhatanh.net/blog/websocket-php-html5-tutorial-echo-server.html
Testing on a machine with Linux operating system and Apache server worked correctly on the part that was performed to boot the server with the command php server.php
, correctly showing in Terminal the connections made and the socket with the chat worked correctly except that the connection was soon lost after a few messages.
However, when testing on a Windows 8 machine and IIS server, when running the command php server.php
was not available for the user to verify which requests to the socket were being performed and the socket did not work when connecting, always returns unknown error even with Websocket installed and active in the IIS settings.
How can I make the project with Websocket work properly?
By clicking Connect on the file client.html
even after the command to start PHP file:
Websocket Connection to 'Ws://localhost:2207/' failed: Error in Connection establishment: net::ERR_CONNECTION_REFUSED
As it should show in CMD or Terminal:
How it looks in Windows CMD: