Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

socketexception: Failed to create server socket (OS Error: The shared flag to bind()... #355

Closed
arefay opened this issue Mar 18, 2019 · 1 comment

Comments

@arefay
Copy link

arefay commented Mar 18, 2019

I'm getting the following error when launching a url using the flutter web view plugin in my iOS emulator:

[VERBOSE-2:ui_dart_state.cc(148)] Unhandled Exception: SocketException: Failed to create server socket (OS Error: The shared flag to bind() needs to be true if binding multiple times on the same (address, port) combination.), address = 127.0.0.1, port = 8585

however, this works fine on android emulator. I'm not entirely sure its related to the plugin or something else related to creating /binding to a server via:

HttpServer server =
await HttpServer.bind(InternetAddress.loopbackIPv4, 8585);

again, strangely this works just fine on Android Emulator

@charafau
Copy link
Collaborator

This is not plugin related, it's some ios security issue when creating local server. I'd suggest to post question on SO if you cannot find answer for that.

Closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants