• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 476
  • Last Modified:


We have a TCP/IP LAN and very often programs running on the LAN have connection trouble, but did not give an error message. Then we played a game (quake2) on the LAN and now I got an error message: NET_GETPACKET: WSAENOTSOCK. Since I have Winsock 2 installed I run SOCKEYE and opened a socket (startup), and then wanted to close it (closesock).
I got the same error: WSAENOTSOCK (10038).

What does this mean and how can i fix it?
1 Solution
Here is what the documentation says about WSAENOTSOCK

Socket operation on non-socket.

An operation was attempted on something that is not a socket. Either the socket handle parameter did not reference a valid socket, or for select, a member of an fd_set was not valid.

What this means is that the program running tried to do something on an invalid network connection and the program didn't handle the error gracefully.  It's possible that something messed up your WINSOCK installation.  You might try reinstalling it.  
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now