beast
beast copied to clipboard
connect: No connection could be made because the target machine actively refused it
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.
I think your issue is nothing related to Beast.
Now it s Beast issue, i shoud configure a proxy, but how i dont now
Beast does not directly support proxies, you will have to implement that yourself.
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
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.
This issue has been open for a while with no activity, has it been resolved?