Skip to content

Conversation

@nicolo-ribaudo
Copy link
Contributor

Using 0.0.0.0 instead of localhost allows connecting from other devices, significantly simplifying testing on mobile devices.

This is controlled by the ANY_HOST environment variable and not enabled by default, since allowing external connections comes with security implications (e.g. when on a public network without a properly configured firewall).

Using `0.0.0.0` instead of `localhost` allows connecting from other
devices, significantly simplifying testing on mobile devices.

This is controlled by the `ANY_HOST` environment variable and not
enabled by default, since allowing external connections comes with
security implications (e.g. when on a public network without a
properly configured firewall).
Copy link
Contributor

@calixteman calixteman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can add an option to handle whatever host:
https://github.com/mozilla/pdf.js/blob/master/gulpfile.mjs#L2096-L2144

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants