You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[flutter_tools] "ArgumentError: Invalid argument(s): Invalid port" when --web-port provided with invalid port #123147
On beta/3.9.0-1.0.pre.2
With command: flutter run --machine --start-paused -d chrome --devtools-server-address http://127.0.0.1:9100/ --target lib/main.dart -d chrome --web-renderer html --web-port 603300
ArgumentError: Invalid argument(s): Invalid port 603300
at _throwOnBadPort(socket_patch.dart:120)
at _RawServerSocket.bind(socket_patch.dart:1744)
at _ServerSocket.bind(socket_patch.dart:2030)
at ServerSocket._bind(socket_patch.dart:2021)
at ServerSocket.bind(socket.dart:309)
at _HttpServer.bind(http_impl.dart:3173)
at HttpServer.bind(dart:_http:191)
at WebAssetServer.start(devfs_web.dart:206)
at <asynchronous gap>(async)
at WebDevFS.create(devfs_web.dart:745)
at <asynchronous gap>(async)
at ResidentWebRunner.run.<anonymous closure>(resident_web_runner.dart:281)
at <asynchronous gap>(async)
at asyncGuard.<anonymous closure>(async_guard.dart:111)
at <asynchronous gap>(async)
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
christopherfujino commentedon Mar 21, 2023
Per https://www.ietf.org/rfc/rfc793.txt Section 3.1 TCP ports should be 16-bit numbers (0-65535)
github-actions commentedon Apr 10, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.