• 网络层，能否 Ping 通目标机器
• 传输层，对应协议能否通过对应端口接受和发送数据
• 应用层，游戏版本是否一致，内部传输协议是否一致

Method 3:

If that doesn't work, here's a more technical way to manually connect to a LAN server:

• Who ever is the host, while the game is running on windows go to this location Documents_# (where # is the slot number of the host server you picked when you made the server) and inside you'll see a cluster.ini file (open it with notepad). Look for the number associated with master_ip and master_port. There are the numbers your friend should enter.
• On the friends computer with DST opened, press tilde "~" and enter the following command where IP address = master_ip and port = master_port and include password if you have it:

So for example, if the master_ip = 1.1.1.1 and master_port = 01010 and you didn't use a password, the code your friend should use is:

And they should be able to start picking a character and play with you!

Hopefully the first method I mentioned above helps, good luck and have fun. Cheers.

• 有个 C:\Users\gitai\Documents\Klei\DoNotStarveTogether\317637636\Cluster_2\Master类似这样的文件夹，里面有个 cluster.ini 文件
• 里面写了 server_port 而这就是对应服务的端口号