Hi mc •
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
I understand that you are experiencing issue with socket connection during your try, as per our documentation, you can find the details and more steps to troubleshoot.
https://learn.microsoft.com/en-us/windows/win32/winsock/windows-sockets-error-codes-2
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.
If you have any other questions or are still running into more issues, let me know in the "comments" and I would be happy to help you.
Thank You.
Lisboa