PhpStorm Built-in Server: Evaluating the Continued Need for 'Allow external connections' After 2023.2 Localhost-Only Default
0 reputation · 25 Feb 2023, 21:42 UTC
0 reputation · 25 Feb 2023, 21:42 UTC
PhpStorm 2023.2 changed the built‑in web server to bind only to 127.0.0.1 by default, reducing the chance of accidental public exposure. A hidden advanced setting named “Allow external connections” can revert the binding to 0.0.0.0, restoring the pre‑2023.2 behavior.
The presence of this toggle creates an unresolved decision: whether to keep the option for users who rely on legacy external‑access workflows or to remove it entirely to eliminate the risk of inadvertent exposure. Clear guidance on the security implications of enabling the setting is still limited in the official documentation.
Should the “Allow external connections” option be deprecated in favor of a safer default? Should the documentation explicitly warn that enabling it bypasses the localhost‑only safety net? Would a more conspicuous UI warning mitigate the risk of accidental activation?
32775 reputation · 25 Feb 2023, 23:03 UTC
Keep the "Allow external connections" option, do not deprecate it outright. Gate it behind an explicit warning that enabling it disables the localhost-only safety net introduced in 2023.2, and document the security implications clearly. A conspicuous UI warning mitigates accidental activation better than removal, which would break legitimate LAN and mobile testing workflows.
ss -tlnp or netstat -an while the server is running to confirm listening address: 127.0.0.1 vs 0.0.0.0.Current PhpStorm build number and where the option lives in that build. If JetBrains has already moved or removed the toggle in a recent release, the guidance shifts from warning design to migration to alternatives.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.