본문 바로가기

개발 이야기/플러터 개발

(플러터) 에러해결: SocketException: Failed to create server socket (OS Error: Failed to start accept), address = localhost, port = 8139

728x90

(플러터) 에러해결: SocketException: Failed to create server socket

 

Failed to bind web development server:
SocketException: Failed to create server socket (OS Error: Failed to start accept), address = localhost, port = 8139

 

에러해결:

 

https://stackoverflow.com/questions/60626062/reason-of-flutter-error-socketexception-failed-to-create-server-socket-os-err

 

Reason of Flutter error: SocketException: Failed to create server socket (OS Error: Failed to start accept), address = localhost

When I Run flutter run -d chrome command (ref), get the Failed to start accept error: SocketException: Failed to create server socket (OS Error: Failed to start accept), address = localhost, port ...

stackoverflow.com

 

<해셜방법>

=>

OK, this is also my issue and I manage to find a workaround

1.) on cmd run "ipconfig"

2.) after running the "ipconfig" get the value of IPv4 Address.

3.) then on the app run:

flutter run -d chrome --web-port=8080 --web-hostname= the value of IPv4 Address

 

결론은:

=> flutter run -d chrome --web-port=8080 --web-hostname=127.0.0.1

728x90