Error Message:

Connection timed out.

Explanation:

A connect or send request failed because the connected party did not properly respond after a period of time. (The timeout period is dependent on the communication protocol.) This error is relevant to connect(), but not to send() or sendto() as it is in Berkeley Sockets.

User Action:

Check that the destination address is a valid IP address. If you used a hostname, did it resolve to the correct address? If the hostname resolution uses a local host table, it's possible you resolved to an obsolete address. Can you ping that hostname? Do you have a router configured? Is the router up and running (check by pinging it, and then ping an address on the other side of it)? Try a traceroute to the destination address to check that all the routers are functioning. Check your subnet mask. If you don't have the proper subnet mask, your network system might treat a local address as a remote address (so it forwards addresses on the local subnet to the router, rather than broadcasting an ARP request locally), or visa versa.