beast icon indicating copy to clipboard operation
beast copied to clipboard

connect: No connection could be made because the target machine actively refused it

Open ghost opened this issue 3 years ago • 6 comments

Hello to evrey one, i use vpn in my laptop, when i am connect to vpn and i try to sent request to server an get the response i got this message of error: connect: No connection could be made because the target machine actively refused it. but when i am connect to wifi i recive the reponse from the server. i don t now why.

ghost avatar May 28 '21 09:05 ghost

I think your issue is nothing related to Beast.

TheStormN avatar Jun 03 '21 12:06 TheStormN

Now it s Beast issue, i shoud configure a proxy, but how i dont now

ghost avatar Jun 03 '21 13:06 ghost

Beast does not directly support proxies, you will have to implement that yourself.

TheStormN avatar Jun 03 '21 13:06 TheStormN

Ok,There is a methode to do our own message of exception, if i do i bad host,because i got message No such host is known what is the code error of that, i want to exlpain more that error using try and catch

ghost avatar Jun 03 '21 13:06 ghost

By viewing your other opened issues I see that you are new to C++, networking, ASIO and Beast. You should start reading the docs, viewing the examples and in general start understanding how the whole machinery is working, before coming here asking generic questions. Perhaps StackOverflow would be a better place for your questions.

If you want to skip some of that learning curve, you should go to a more high level libraries and frameworks. I would recommend the Qt Framework and the provided websocket there - https://doc.qt.io/qt-5/qtwebsockets-examples.html

It does natively support proxies and other high level stuff which you are expecting.

TheStormN avatar Jun 03 '21 15:06 TheStormN

This issue has been open for a while with no activity, has it been resolved?

stale[bot] avatar Jan 09 '22 03:01 stale[bot]