Skip to content
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

Can't start the server, port 8843 occupied #410

Closed
mikemix opened this issue Apr 1, 2016 · 1 comment
Closed

Can't start the server, port 8843 occupied #410

mikemix opened this issue Apr 1, 2016 · 1 comment

Comments

@mikemix
Copy link

mikemix commented Apr 1, 2016

When trying to start the ws server I receive an error so service refuses to start:

Chat server starting at 0.0.0.0:5559
PHP Fatal error: Uncaught exception 'React\Socket\ConnectionException' with message 'Could not bind to tcp://127.0.0.1:8843: Address already in use' in /var/www/app/vendor/react/socket/src/Server.php:29
Stack trace:

0 /var/www/app/vendor/cboden/ratchet/src/Ratchet/App.php(93): React\Socket\Server->listen(8843)

1 /var/www/app/module/Chat/bin/server.php(21): Ratchet\App->__construct('localhost', '5559', '0.0.0.0')

2 {main}

thrown in /var/www/app/vendor/react/socket/src/Server.php on line 29

The port hardcoded by Ratchet 8843 is occupied on my FreeBSD server. Any help?

@mikemix
Copy link
Author

mikemix commented Apr 1, 2016

Well I ended up writing my own WsServer class.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant