Unable to create a TCP/IP socket

Error code 58
Error constant SOCKET_CREATE_TCPIP
Probable cause

The network layer was unable to create a TCP/IP socket. Check the following: 1) The machine is connected to the network. 2) The socket layer is properly initialized. 5) If the device has a limit on the number of open sockets, verify that the limit has not been reached. 6) There are enough system resources available. Free up system resources if they are running low.