Repository: flutter
Issue: "flutter run -d web-server --dds-port=PORT" doesn't start the dart development service on PORT
Labels: tool,platform-web,has reproducible steps,P2,team-tool,triaged-tool,found in release: 3.24,found in release: 3.27

### Steps to reproduce

1. `flutter run -d web-server --web-hostname 0.0.0.0 --web-port 8081 --dds-port 8082 --no-web-resources-cdn`
2. List open ports,  e.g. 

```sh
# lsof -i -P
COMMAND   PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
dart:flut  82 root    9u  IPv4 9928686      0t0  TCP *:8081 (LISTEN)
dart:flut  82 root   14u  IPv4 9932385      0t0  TCP *:44911 (LISTEN)
```

### Expected results

Expect tcp service listening on 8082

### Actual results

No service listening on 8082

### Code sample

<details open><summary>Code sample</summary>

Dockerfile:

```dockerfile
FROM debian

ENV DEBIAN_FRONTEND=noninteractive
ENV FLUTTER_VERSION=3.24.3
ENV FLUTTER_HOME=/usr/local/flutter

RUN apt-get update
RUN apt-get install -y libxi6 libgtk-3-0 libxrender1 libxtst6 libxslt1.1 curl git wget unzip libgconf-2-4 gdb libstdc++6 libglu1-mesa fonts-droid-fallback lib32stdc++6-amd64-cross python3 inotify-tools fswatch tmux

# download Flutter SDK from Flutter Github repo
RUN git clone --depth 1 --branch ${FLUTTER_VERSION} https://github.com/flutter/flutter.git /usr/local/flutter

# Set flutter environment path
ENV PATH="${FLUTTER_HOME}/bin:${FLUTTER_HOME}/bin/cache/dart-sdk/bin:${PATH}"
RUN flutter precache --web
# Run flutter doctor
RUN flutter doctor
# Enable flutter web
# RUN flutter channel master
# RUN flutter upgrade
RUN flutter config --enable-web
```

```sh
flutter run -d web-server --web-hostname 0.0.0.0 --web-port 8081 --dds-port 8082 --no-web-resources-cdn
```
</details>


### Screenshots or Video

_No response_

### Logs

<details open><summary>Logs</summary>

```console
# lsof -i -P
COMMAND   PID USER   FD   TYPE  DEVICE SIZE/OFF NODE NAME
dart:flut  82 root    9u  IPv4 9928686      0t0  TCP *:8081 (LISTEN)
dart:flut  82 root   14u  IPv4 9932385      0t0  TCP *:44911 (LISTEN)
```

</details>


### Flutter Doctor output

<details open><summary>Doctor output</summary>

```console
# flutter doctor -v
[!] Flutter (Channel [user-branch], 3.24.3, on Debian GNU/Linux 12 (bookworm) 6.6.26-linuxkit,
    locale en_US)
    ! Flutter version 3.24.3 on channel [user-branch] at /usr/local/flutter
      Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
      If that doesn't fix the issue, reinstall Flutter by following instructions at
      https://flutter.dev/setup.
    ! Upstream repository unknown source is not a standard remote.
      Set environment variable "FLUTTER_GIT_URL" to unknown source to dismiss this error.
    • Framework revision 2663184aa7 (10 weeks ago), 2024-09-11 16:27:48 -0500
    • Engine revision 36335019a8
    • Dart version 3.5.3
    • DevTools version 2.37.3
    • If those were intentional, you can disregard the above warnings; however it is recommended to
      use "git" directly to perform update checks and upgrades.

[✗] Android toolchain - develop for Android devices
    ✗ Unable to locate Android SDK.
      Install Android Studio from: https://developer.android.com/studio/index.html
      On first launch it will assist you in installing the Android SDK components.
      (or visit https://flutter.dev/to/linux-android-setup for detailed instructions).
      If the Android SDK has been installed to a custom location, please use
      `flutter config --android-sdk` to update to that location.


[✗] Chrome - develop for the web (Cannot find Chrome executable at google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[✗] Linux toolchain - develop for Linux desktop
    ✗ clang++ is required for Linux development.
      It is likely available from your distribution (e.g.: apt install clang), or can be downloaded
      from https://releases.llvm.org/
    ✗ CMake is required for Linux development.
      It is likely available from your distribution (e.g.: apt install cmake), or can be downloaded
      from https://cmake.org/download/
    ✗ ninja is required for Linux development.
      It is likely available from your distribution (e.g.: apt install ninja-build), or can be
      downloaded from https://github.com/ninja-build/ninja/releases
    ✗ pkg-config is required for Linux development.
      It is likely available from your distribution (e.g.: apt install pkg-config), or can be
      downloaded from https://www.freedesktop.org/wiki/Software/pkg-config/

[!] Android Studio (not installed)
    • Android Studio not found; download from https://developer.android.com/studio/index.html
      (or visit https://flutter.dev/to/linux-android-setup for detailed instructions).

[✓] Connected device (1 available)
    • Linux (desktop) • linux • linux-arm64 • Debian GNU/Linux 12 (bookworm) 6.6.26-linuxkit

[✓] Network resources
    • All expected network resources are available.

! Doctor found issues in 5 categories
```

</details>