当我运行flutter run -d chrome
命令( ref ) 时,出现Failed to start accept错误:
SocketException: Failed to create server socket (OS Error: Failed to start accept), address = localhost, port = 6670
Run Code Online (Sandbox Code Playgroud)
附加信息:
flutter channel => beta
Run Code Online (Sandbox Code Playgroud)
我该如何解决?
好的,这也是我的问题,我设法找到解决方法
在cmd上运行“ipconfig”
运行“ipconfig”后获取 IPv4 地址的值。
然后在应用程序上运行:
flutter run -d chrome --web-port=8080 --web-hostname= *the value of IPv4 Address*
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
2312 次 |
最近记录: |