[Tomcat] Unrecognized Windows Sockets error: 10106: Socket creation failed

The following error was reported during tomcat8 startup

30 -Nov- 2017  22 : 45 : 52.892 Serious [main] org.apache.catalina.core.StandardServer. await StandardServer. await : create[localhost: 8005 ]:
 java.net.SocketException: Unrecognized Windows Sockets error: 10106 : create
at java.net.ServerSocket.createImpl(ServerSocket.java: 307 )
at java.net.ServerSocket.getImpl(ServerSocket.java: 257 )
at java.net.ServerSocket.bind(ServerSocket.java: 375 )
at java.net.ServerSocket. <init>(ServerSocket.java: 237 )
at org.apache.catalina.core.StandardServer. await (StandardServer.java: 441 )
at org.apache.catalina.startup.Catalina. await (Catalina.java: 758 )
at org.apache.catalina.startup.Catalina.start(Catalina.java: 704 )
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 62 )
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 43 )
at java.lang.reflect.Method.invoke(Method.java: 498 )
at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java: 355 )
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java: 495 )

Solution: 1. Open the command prompt 2 as an administrator
         , enter netsh winsock reset  
         3 , and restart the computer.

Winsock is a Windows network programming interface. Winsock works at the application layer. It provides a high-level data transmission programming interface that has nothing to do with the underlying transmission protocol. Netsh winsock reset restores it to the default state.

 

Read More:

Leave a Reply

Your email address will not be published. Required fields are marked *