Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.
This repository was 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

@ryanapsmith

Description

@ryanapsmith

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions