ghedipunk / PHP-Websockets

A Websockets server written in PHP.
BSD 3-Clause "New" or "Revised" License
917 stars 374 forks source link

Not working on Mamp #72

Closed irfanwv closed 8 years ago

irfanwv commented 8 years ago

I am using on MAMP, but it is not working. And also ws://192.168.0.115:3003/php give

This site can’t be reached.

How to it'll work.

Xaraknid commented 8 years ago

After a little search of what is MAMP.

The websocket server MUST be executed as a command line also know as CLI. Depending you using it under OSX or Windows. You'll need to do some step to enable php cli on mamp. https://www.google.ca/?gws_rd=ssl#q=mamp+php+cli find the best option for you.

Also make sure you edit client.html line 20 to match your IP and only client.html should be available to the public by the http server. All php file MUST be on another folder only accessible by the server itself.

ghedipunk commented 8 years ago

Closing as this is not an issue with the server... However, if you still need support, please feel free to continue to comment here.