Forum > Networking and Web Programming
Failed to connect to a simple web server
ap3000:
In preparation for making a Rest API webserver, I searched for some examples and found this one:
https://medium.com/@marcusfernstrm/create-rest-apis-with-freepascal-441e4aa447b7
This compiling and running fine on my Windows 10 machine. But I just got a new laptop running Windows 11 and I can't connect to the server. I get the "ERR_CONNECTION_REFUSED".
I have tried to shut off the firewall without a result. What can I more do to get this working?
MarkMLl:
I am no expert in this area, but in the interest of getting something going: is your client telling you that it wants https rather than http at the server end?
MarkMLl
ap3000:
Hi Mark,
I'm not sure. It also doesn't with https. de server is only lisent to HTTP. As it works on Windows 10 it has to be something on this laptop. To exclude that it was the browser (Brave) I also tried it with Postman - same result
Sorry I was not correct the error is "ERR_UNSAFE_REDIRECT"
silvercoder70:
I suspect that it is forcing the browser to use https?
The code does work out of the box - just ran it on linux mint and connected fine via Firefox. Try out this link ...
https://superuser.com/questions/1400200/chrome-persistently-redirecting-to-https-for-http-site
egsuh:
I don't think this is the cause of the problem, but is port 8090 available?
Navigation
[0] Message Index
[#] Next page