ErrorCode 10060. Winsock 10060 Connection has timed out

When I try to connect to a printer in network, need to establish a connection first. But getting an error before it is connected. Error stated Connection has timed out, network and server is little bit slow and I am the authorized user, why I am getting error? I tried it again and again.Does anyone know how to fix this problem? Help please.

Error:
Message from webpage
ErrorCode: 10060
Error message: Winsock 10060 – Connection has timed out.
Error group: WINSOCK
Error code: 10060
Sometimes it get connected to the network but there the problem is different. Here the error message says the printer name is invalid. I don’t know why I am undergoing such errors for just connecting a printer? Do I need to clear the registry? What is the root cause for all this problem? Help me please.

Error:
Novell iPrint
Error message: The printer name is invalid.
Error group: Windows
Error code: 1801
