There is a test machine I am running in my house to run the server. Following some guidelines from another tutorial, I am using XAMPP, which includes Apache. When I start the server up with the configurations set to localhost:6118 (the machine running the server) I am able to run the client.html in multiple tabs and have users message each other on the server itself. However, when I try to use another computer within my network to try this it cannot connect. Of course, in the client.html file it is necessary to set the IP not to local host, but to point it to 192.168.1.12:6118 (the internal IP of the server). Even this does not work.
Thus, the server.php file included in the github project seems to work alright -- the problem I encounter is when I try to get other users, such as on my network and other users connecting externally outside my network. They will not connect, despite the comments saying to change the IP in the client.html and server.php differently, depending on if you want to run the server only on the local machine or open to the internet.
So far I have tried:
- Port forwarding on port 6118
- Testing various combinations of ports and IPs
- Verifying that the server's security configuration wizard is set properly to allow connections on port 6118
- Checking that php_sockets.dll is in \ext\ directory
- Editing php.ini settings to include the php_sockets.dll correctly
Does anyone know the problem here? I still feel like something is wrong with the port, but I'm not completely sure.
I also understand that web sockets are still in development, and that PHP sometimes gets a poor reputation, among other implementations, with managing the sockets. It would further be appreciated if someone led me to a web host that supported working with web sockets. I've heard that Amazon (AWS) possibly offers this sort of support.
This post has been edited by chiefofgxbxl: 26 January 2013 - 05:16 PM