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

ECONNREFUSED (Connection refused) #10

Open
ledinhphuong opened this issue May 6, 2014 · 7 comments
Open

ECONNREFUSED (Connection refused) #10

ledinhphuong opened this issue May 6, 2014 · 7 comments

Comments

@ledinhphuong
Copy link

The issue will appear for both ws and wss if android device connect to the internet via WIFI with http proxy configuration.

@damonsu
Copy link

damonsu commented May 6, 2014

Hello ledinhphuong,
do you have the problem "Trust anchor for certification path not found" at wss.
Could you tell me, with which wss server did you test you wss connection?
thank you!

@palmerc
Copy link
Owner

palmerc commented May 6, 2014

I have traditionally tested with http://www.websocket.org/echo.html. You probably have not installed the root certificates on your server. A common problem is only installing your certificate. Check that your SSL server is working correctly using an SSL testing client https://ssltools.thawte.com/checker/views/certCheck.jsp

@ledinhphuong
Copy link
Author

Thank @damonsu, @palmerc for yours quick response. I don't think this issue belong server side. Steps to reproduce it as below:
1: Configure wifi with http proxy on android device (This feature just comes with android 4.0 or later).
screen shot 2014-05-07 at 10 07 27 am

2: Run Debug your Echo app on this device and it goes to exception after tapped Connect button (mTLSEnabled=false, WS_ECHO_SERVER = "ws://echo.websocket.org")
screen shot 2014-05-07 at 10 53 57 am

P/s: Websocket works well in chrome app
screenshot_2014-05-07-10-07-48

@palmerc
Copy link
Owner

palmerc commented May 7, 2014

Does the client work without the Proxy?

@ledinhphuong
Copy link
Author

@palmerc Yes, it works well without the proxy.

@damonsu
Copy link

damonsu commented May 7, 2014

@palmerc thanks for you answer. I have tried to install a self-signed certificate on my server.
But i get also the same error. Does this library support self-signed certificate?

@palmerc
Copy link
Owner

palmerc commented Feb 28, 2015

I have no idea, I've never tried it.

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

3 participants