惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
P
Proofpoint News Feed
G
Google Developers Blog
B
Blog
Engineering at Meta
Engineering at Meta
阮一峰的网络日志
阮一峰的网络日志
The Register - Security
The Register - Security
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 叶小钗
The Cloudflare Blog
The Hacker News
The Hacker News
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
CXSECURITY Database RSS Feed - CXSecurity.com
雷峰网
雷峰网
F
Fortinet All Blogs
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
H
Hackread – Cybersecurity News, Data Breaches, AI and More
酷 壳 – CoolShell
酷 壳 – CoolShell
Last Week in AI
Last Week in AI
T
Threat Research - Cisco Blogs
A
About on SuperTechFans
量子位
Recorded Future
Recorded Future
博客园 - 三生石上(FineUI控件)
H
Help Net Security
Help Net Security
Help Net Security
P
Palo Alto Networks Blog
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
T
Troy Hunt's Blog
W
WeLiveSecurity
V
Vulnerabilities – Threatpost
T
The Exploit Database - CXSecurity.com
Know Your Adversary
Know Your Adversary
Apple Machine Learning Research
Apple Machine Learning Research
Scott Helme
Scott Helme
N
News | PayPal Newsroom
AWS News Blog
AWS News Blog
D
DataBreaches.Net
Blog — PlanetScale
Blog — PlanetScale
MongoDB | Blog
MongoDB | Blog
B
Blog RSS Feed
腾讯CDC
J
Java Code Geeks
Microsoft Azure Blog
Microsoft Azure Blog
TaoSecurity Blog
TaoSecurity Blog
GbyAI
GbyAI
Y
Y Combinator Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
D
Docker

Posts on Loong's Blog

Trip to Changchun National Day Records in 2025 Long Term Planning Summary of 2024 Teamwork Using Git Use DDNS To Access Intranet Devices Development Environment Management Tools Blog Migration Two-month Life Experience In Hefei Automated Build Via Jenkins Crack The Optical Modem Superuser Password
Remote Networking for Online Games
2025-02-22 · via Posts on Loong's Blog

Featured image of post Remote Networking for Online Games

Remote Networking for Online Games

After graduation, my classmates all went to different places to study and pursue their careers. They would occasionally play a game of Warcraft during holidays, but since they were in different provinces, it was a bit troublesome to connect to the LAN game.

During this period, I tried to use free networking tools, build my own transit server, and use Dandelion networking. Through comparison, I hope everyone can find a networking method that suits them.

EasyN2N Or N2N

Since I used EasyN2N at the beginning, the experience was pretty good, and I was able to learn some network knowledge from the relevant community.

However, since the transit server of EasyN2N is free, when everyone is using it, the transit server will be overloaded, resulting in high latency or even failure to connect. After graduating and returning to my hometown, the network there is poor, and I often get disconnected halfway through playing.

In addition, EasyN2N is often accidentally deleted by antivirus software, which may also cause disconnection in the middle of the game, so it is recommended to use it through the command line instead of using its own visualization tool.

For related usage, please refer to this article

Beirui Dandelion

Beirui Dandelion is a paid networking tool, free for up to 3 people. If you want to network with more than 3 people, you need to buy a package.

The free version of Beirui Dandelion cannot set the IP of the virtual LAN client. Some games, such as Warcraft, require packet capture and analysis. It can be found that client B cannot receive the UDP message broadcast by client A, so you have to use the network debugging assistant to assist in creating a room. The following are the specific steps:

Assume that there are two computers, A and B. The IP address of computer A is 172.16.3.130, the IP address of computer B is 172.16.3.150, and the subnet mask is 255.255.252.0.

  1. If computer B creates a room as the host, and computer A joins the room as the client

By capturing packets with Wireshark, it can be found that after computer B creates a room, it will continue to broadcast f732100001000000010000000c000000 to udp port 6112. Due to limited time, the meaning of the message will not be analyzed.

When computer A scans the existing room, computer A will broadcast f72f1000505833571a00000000000000 to udp port 6112. Since A and B are not in the same network segment, computer B cannot receive the broadcast of computer A, and A cannot know whether there is a room.

Next, we use the network debugging assistant to send a udp broadcast packet for scanning the room from computer A to computer B. Assume that the message msg (including the number of players, map information, etc.) is received.

Then, send the content of msg to computer A on computer B, and computer A can join the room.

Summary

If there are fewer clients to be networked, N2N and Beirui Dandelion are both low-cost networking methods.

If there are further needs, such as a large number of people in the room, or a more stable network is required, if the players are mainly concentrated in a few areas, you can consider building your own transit server. If the players are widely distributed, you can consider purchasing the Beirui Dandelion package.

Reference

  1. https://bugxia.com/n2n_launcher_param

  2. https://www.cnblogs.com/flying_bat/archive/2008/06/24/1228627.html


2025-02-22 Update