patternlab-php icon indicating copy to clipboard operation
patternlab-php copied to clipboard

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

Open ryanapsmith opened this issue 8 years ago • 1 comments

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

ryanapsmith avatar May 25 '17 15:05 ryanapsmith

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

mgrsskls avatar Apr 27 '18 07:04 mgrsskls