It's not a secret anymore!
The moose likes Sockets and Internet Protocols and the fly likes Unrecognized Windows Sockets error: 10106: create Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Bookmark " Unrecognized Windows Sockets error: 10106: create" Watch " Unrecognized Windows Sockets error: 10106: create" New topic
Author Unrecognized Windows Sockets error: 10106: create

Krishna Rao

Joined: Nov 15, 2006
Posts: 8
I am running client socket program which is supposed to get connected with a server socket. The server socket is running fine and netstat -a shows that my server socket port is listening.

But when client socket program is run: It fails by giving following error message.

Thread[main,5,main] : Unrecognized Windows Sockets error: 10106: create Unrecognized Windows Sockets error: 10106: create

I am running this on Windows XP. Running on other platforms like solaris is working fine.

I am not running windows xp firewall too.

Can some one help me please.
Rahul Bhattacharjee
Ranch Hand

Joined: Nov 29, 2005
Posts: 2308
This might be a known issue with Windows XP Home.

Check this bugreport.

Rahul Bhattacharjee
LinkedIn - Blog
Anthony Andras
Ranch Hand

Joined: Nov 09, 2008
Posts: 31
I hate to reopen an issue from a few years ago, but I am running into this issue when attempting to run tomcat under Windows 7.

One interesting thing I noticed about Windows 7 is that it doesn't define a SystemRoot environment variable as it does in XP. Does anyone have any ideas. I understand my chances of finding a solution might be scarce due to how new Windows 7 is.

I made an attempt to create a system level environment variable called SystemRoot, but that didn't seem to resolve my issue.



Note - the original post differs from my post slightly in that the exception is a bit different:

I REALLY appreciate everyone's time and energy toward this.
Anthony Andras
Ranch Hand

Joined: Nov 09, 2008
Posts: 31
Ok, Please disregard the post above. I was able to solve the issue. I was completely unaware and had an instance of Tomcat running the whole time. I didn't realize I had it installed as a service, then attempted to run the startup.bat script. I apologize to anyone who took any time to research this and assure you I will be more careful when posting next time.

Praveen Kumar Singh
Ranch Hand

Joined: Mar 04, 2009
Posts: 43
i don't know about you, but i am still getting this error, i checked already no tomcat or java process is runining in my system.
I recently migrated to windows 7 and i am using tomcat 5.5

quark up

Joined: May 17, 2011
Posts: 1
I had the same problem.
After I close Skype and restart TomCat, no problem. the problem should be skype, in my case
Tushar Kapila
Ranch Hand

Joined: Dec 23, 2007
Posts: 35 Unrecognized Windows Sockets error: 0: JVM_Bind

JVM_Bind means the server socket could not connect to that port as its already being used by another server socket

Skype and other programs latch on to well known ports for their own communications. i guess they use port 80 cause in some offices/ lans other ports are fire walled

stupid for a dev as we start web servers on those on very ports for development !

so either use another port like 8181 or 8182 or shut down other program(s) that are using the port you want

netstat (with -b param ) should tell you the ports being used and the exe that started listening on it |
I agree. Here's the link:
subject: Unrecognized Windows Sockets error: 10106: create
It's not a secret anymore!