Hi ScottBonar,
Hello, as far as I know, the server cannot use something similar to "INADDR_ANY" because this means any address on the host, but if you don't know the IP address of the server, it is impossible to find the server. So here you should set "INADDR_ANY" to a real IP address, "INADDR_ANY" can only be used for the sender (that is, if you need to send something, you can use my arbitrary IP, and the received IP must be a We can find the IP of its location).
In addition, the address specified in the API call is not valid for that function or when the specified port is 0, there is also such an error.
Hope my answer can help you!
Best Regards,
Xu Gu