I am trying to coonect to a host using the port 80.
I use the foolowing method in code;
struct sockaddr_in server;
server.sin_family = AF_INET;
server.sin_port = htons(PortNumber);
server.sin_addr.s_addr = inet_addr(ServerAddress);
connect(sockfd, (struct sockaddr *) &server, sizeof(server));
I get then 10061 if I use WSAGetLastError(); after that.
What is the problem do you think?
What can I do for that?