Error

Network error 10060: "Connection timed out"

 

Error description

The client side did not receive response from the server during a set period of time (usually when attempting to set up TCP connection). Frequent reasons:


1. Remote server is not available:

  • the server is turned off, it does not work with the port you need, or response is too slow;
  • you specified incorrect IP server address, domain name or connection port;
  • you connect via IPv6 address, and the server works via IPv4 or vise versa;
  • the application on the server "froze" or crashed.


2. Connection is lost:

  • no network connection (the network cable or Wi-Fi not connected or broken);
  • connection channel quality is very low, and the client can not  connect to the server for some period of time.


3. Interfered by Brandmauer, antivirus, VPN, NAT or proxy:

  • you connect to the address that is unavailable from your network (routing errors);
  • packages are "lost" on the way even if the server is available;
  • internal DNS extensions forwards to IP that is not available from the current network.

 

Problem solution

1. Run cmd.exe

 

Open the console. Menu "Start", "Run" (or Win+R), and run the command cmd

 

 Windows console (cmd.exe)

 

2. Check the computer accessibility (ping).

 

Try ping <server_address> or  tracert <server_host>

 

Pinging in Windows console

 

If there is a connection, move to the next step, if not (you'll see "Timed out request") — check if MyChat Server in on and computer is available over the network. You should also check physical connection between your computer and computer with MyChar Server. If there are package losses, pay attention to it, because it can happen due to bad connection (slow channel, unstable connection via satellite , issues with incorrectly working devices or drivers).


If there are packages losses, then run ping <server_address> -t -l 1024. Test connection by packages by one kylobyte during several minutes.


3. Checking connection to the server with the help of Telnet Client


By default, there is no Telnet in the system , so you need to install Telnet Client by using a command line (works in Windows 10, 11 and Windows Server): dism /online /Enable-Feature /FeatureName:TelnetClient (no elevated privileges needed).


Or use default Windows set of tools "Programs and features", "Turn Windows features on or off":


Telnet Client in Windows

 

Search it in the list and install:

 

Installing Telnet Client in Windows



By default, MyChat Server uses 2004 TCP port, so run this command:


telnet <mychat_server_ip> 2004

 

If there is no response (connection error):

 

Telnet in Windows console

 

It means, that a router configured incorrectly; firewall, or port 2004 is blocked by anti-virus (on the server or client computer, or between them if port mapping is complicated).


Usually this problem is solved by adding MyChat Client and MyChat Server to firewall (Brandmauer) and anti-virus exclusions list. Or, for a test, you can try turning off firewall. It is especially important on the server side — Windows Defender frequently blocks listening ports.


Default list of ports used in MyChat.


4.Make sure, that the server listens exactly this port.


Run in the console — netstat -an | find ":2004" — set status must be LISTENING.


 Also check that IP address and port used by a client are the same the server listens (bind). Moreover, check if MyChat Server network settings set as "listen to all", because if you set one network interface but connect to another from other subnetwork, then connection won't work. By default, the server listens all available local network interfaces:


Server network interfaces and settings