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

Cannot connect to server in mobile(android) browser #5

Open
minhyungko opened this issue Jun 29, 2018 · 1 comment
Open

Cannot connect to server in mobile(android) browser #5

minhyungko opened this issue Jun 29, 2018 · 1 comment

Comments

@minhyungko
Copy link

screenshot_20180629-100554

Hi I'm trying to make fadecandy webapp client for fadecandy.

But When I connect through webview or browser, server response below message

home.js:429 WebSocket connection to 'ws://127.0.0.1:7890/' failed: Error during WebSocket handshake: Incorrect 'Sec-WebSocket-Accept' header value

Fadecandy server still works fine when I tried on fadecandy-app

Is any different on libwebsocket for android ?

@minhyungko minhyungko changed the title Cannot connect server in browser Cannot connect to server in browser Jun 29, 2018
@minhyungko minhyungko changed the title Cannot connect to server in browser Cannot connect to server in mobile(android) browser Jun 29, 2018
@bertrandmartel
Copy link
Owner

As far as I remember the default server configuration set the LAN ip of your device as server ip adress :

fun getDefaultConfig(address: String?, serverPort: Int): String {
this way it can be used by other fadecandy client on the same network. But if you use the fadecandy service in library, you can set the config with startFcServer(config)

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