Note:
This topic has been translated from a Chinese forum by GPT and might contain errors.Original topic: VMware 虚拟网络映射 Lost connection to MySQL server at ‘reading initial communication packet’, system error: 0

[Test Environment for TiDB]
[TiDB Version] 6.5.2
[Encountered Issue: Problem Description and Impact]
Installed VMware on Windows 10 (192.168.1.121), then successfully deployed the cluster by creating 9 virtual machines in VMware. The network connection uses NAT mode, with the subnet being 192.168.43.xxx.
Within the dedicated subnet of the virtual machines (192.168.43.xxx), I can access the tidb_server (192.168.43.140:4000) using the MySQL client.
To allow access to tidb_server and Grafana from other subnets, I configured port mapping in VMware’s virtual network editor.
The result is:
Computers from other subnets can access Grafana (http://192.168.1.121:3000) through VMware’s port mapping and can also use telnet to log in to 192.168.1.121:4000, but cannot access 192.168.1.121:4000 using the MySQL client.
The error message is:
ERROR 2013 (HY000): Lost connection to MySQL server at ‘reading initial communication packet’, system error: 0
Please advise, any help would be greatly appreciated!