问题 Is there any way to start Flutter web, with a Headless-Server target, always on the same specified port number ? Today, running the web application with: flutter run -d headless-server Provides a random port number. 回答1: I found the answer inside the flutter_tools source code: flutter run -d headless-server --web-port=1234 回答2: The above solution works fine if you are like using command line. But if you you are using VsCode by CTRL+F5 that won't work. So to make vscode CTRL+F5 run in chrome