Open flbaue opened 3 years ago
@bkonyi do you know if this has been fixed?
@bkonyi do you know if this has been fixed?
I have no idea, I've never seen this type of failure before. My understanding of binding to ports is that an already bound port can't be stolen. We'd need a repro case for this to make any progress.
When I start a flutter app while I am already running a docker container with binding to port 9100, the flutter devtools take over that port.
OS: MacOS 11.2.3 Docker: Docker Desktop 3.2.2.
Before running my flutter app:
After running my flutter app:
The result of this is, that I cannot connect to my docker service anymore, until I stop the dart process.
Addition: I am starting the Flutter app from VSCode and inside the settings.json of VSCode I placed this:
When I am opening the devtools from VSCode in Chrome the browser opens on 127.0.0.1:10999, which is correct. But still there is also a dart process binding to port 9100. When I run
curl 127.0.0.1:9100
I can see that there are also devtools running.This behavior started after I updated to Flutter 2.0.3. And two colleagues, that work on the same project, just experienced this issue as well.