Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

net::ERR_CONNECTION_REFUSED

miro_mr
Posts: 8
Joined: Sat Mar 14, 2020 6:35 pm

net::ERR_CONNECTION_REFUSED

Post by miro_mr »

Hi,

I have a problem with connection to a local source. When using BriskBard browser everything works fine as you can see in wss.png attachment. But when I use TChromium in my application then I'll get "WebSocket connection to 'wss://127.0.0.1:49593/getUrl/49f780de-c014-b026-5bcf-23341deb9430' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED", source: https://www.slovensko.sk/static/zep/dbr ... mon.min.js (259)

Do you have any ideas what is probably blocking me?

Thanks
You do not have the required permissions to view the files attached to this post.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: net::ERR_CONNECTION_REFUSED

Post by salvadordf »

Hi,

Perhaps it's an issue in the latest CEF binaries. BriskBard still uses CEF 79 while CEF4Delphi uses CEF 80.

Please, try the official CEF sample application with that service :
http://opensource.spotify.com/cefbuilds ... nt.tar.bz2
miro_mr
Posts: 8
Joined: Sat Mar 14, 2020 6:35 pm

Re: net::ERR_CONNECTION_REFUSED

Post by miro_mr »

Hi
see please attached log files from cefclient.exe (cef_binary_80.0.8%2Bgf96cd1d%2Bchromium-80.0.3987.132_windows32_client.tar.bz2)
Thank you
miro_mr
Posts: 8
Joined: Sat Mar 14, 2020 6:35 pm

Re: net::ERR_CONNECTION_REFUSED

Post by miro_mr »

Hi,
see please attached log files. (cefclient.exe 80.0.3987.132).

Thank you
logfiles.zip
You do not have the required permissions to view the files attached to this post.
miro_mr
Posts: 8
Joined: Sat Mar 14, 2020 6:35 pm

Re: net::ERR_CONNECTION_REFUSED

Post by miro_mr »

Hi
see please log files from cefclient.exe(-80.0.3987.132_windows32_client)

Thank you
logfiles.zip
You do not have the required permissions to view the files attached to this post.
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: net::ERR_CONNECTION_REFUSED

Post by salvadordf »

First of all I must confess that I have a very limited experience with websockets so I'm not the best person to give advice about this issue.

It seems that the official CEF sample application is also having the same issue. This means that it could be caused by an issue in Chromium or CEF, or a change in the way WSS connections should be made in the browser.

I would try to replicate this issue in the latest Chrome browser. If you still see the issue I would search for "WebSocket connection failed ERR_CONNECTION_REFUSED" in google and try the suggested solutions. Perhaps this works :
https://github.com/GeniusesOfSymfony/We ... issues/251

If Chrome works correctly then it could be a CEF issue and I would ask for help in the CEF forum :
https://magpcss.org/ceforum/

Sorry, but I'm afraid I can't help you.
miro_mr
Posts: 8
Joined: Sat Mar 14, 2020 6:35 pm

Re: net::ERR_CONNECTION_REFUSED

Post by miro_mr »

Ok, but it is very interesting it works perfectly in Briskbard browser.
(I noticed a libeay32.dll, which is included in briskbard browser installation. Can this lib somehow affect this behavior? )
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: net::ERR_CONNECTION_REFUSED

Post by salvadordf »

That's very unlikely. CEF has its own network stack and as far as I know it doesn't use OpenSSL.

BriskBard uses Indy components which use the OpenSSL library for other tabs : FTP, newsgroups reader, IRC, telnet, RSS reader, etc.
miro_mr
Posts: 8
Joined: Sat Mar 14, 2020 6:35 pm

Re: net::ERR_CONNECTION_REFUSED

Post by miro_mr »

BriskBard works beautifully. :) :)
Watch videos at:

http://admis.sk/briskbard/briskbard.zip
User avatar
salvadordf
Posts: 4016
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: net::ERR_CONNECTION_REFUSED

Post by salvadordf »

I'm glad you like it :D

I don't understand the language of the popup window. Is it related to some certificate?

Perhaps you also need to implement TChromium.OnSelectClientCertificate in your browser.
Post Reply