Skip to content
This repository has been archived by the owner on Feb 7, 2023. It is now read-only.

Documentation request: Viewing Patterns (connection refused error when viewing on other computers on the same network) #390

Open
ryanapsmith opened this issue May 25, 2017 · 1 comment

Comments

@ryanapsmith
Copy link

The documentation currently specifies typing php core/console --serverto view patterns. Would it be possible to include the additional options for specifying / changing the host and port number?

Additionally, it seems the socket created defaults to listening via ipV6, which doesn't work well for machines that have ipV6 enabled, but no address configured, and accessed from other computers on the LAN. A workaround I found involves disabling ipV6 on the server, and specifying the address 0.0.0.0 so that the web server created listens on something other than just localhost, and doesn't result in a connection refused error when trying to access from other computers on the network.

eg:
php core/console --server --with-watch --host 0.0.0.0 --port 8080

@mgrsskls
Copy link

Hey, php core/console --server --host=0.0.0.0 works for me!

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

No branches or pull requests

2 participants