8000 [DX] [WebServerBundle] Display the local host IP when binding to 0.0.0.0 · Issue #28585 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[DX] [WebServerBundle] Display the local host IP when binding to 0.0.0.0 #28585
Closed
@respinoza

Description

@respinoza

Description
When binding the web server to 0.0.0.0 the success message shows http://0.0.0.0:8000 which is technically correct but as a developer you can't do anything with it, you will have to look up this (many ways, depending on your environment).
I propose to show the local hostname resolved to an IP in addition to the current message. I understand this won't cover all specific address but might make the developer life easier for common cases.

Example
For example, lets say you use docker, when running the command inside the container like ./bin/console server:start *:8080, the new output will show this:

[OK] Server listening on http://0.0.0.0:8080 (http://172.20.0.2:8080)

In this way you can easy copy (or click on it) instead of using docker inspect or something other method to retrieve this address.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0