Video failed to load

Multiplayer Networking Guide: Build a Virtual LAN with Friends Around the World Using N2N

389 words
2 minutes
Multiplayer Networking Guide: Build a Virtual LAN with Friends Around the World Using N2N
Multiplayer Networking Guide: Build a Virtual LAN with Friends Around the World Using N2N

Translation Notice

This article was originally written in Chinese and translated into English with the assistance of AI. The translation has been reviewed and edited for clarity, accuracy, and readability. Please refer to the original source where necessary, especially for technical terms, commands, configuration details, and proper nouns.

EasyN2N, also known as “Little Yellow Duck”, is a virtual-networking tool designed for multiplayer gaming. In theory, it supports any game with LAN multiplayer. According to Bugxia, successfully tested games include the CS series, Red Alert 2/3, StarCraft, Warcraft III, DOTA, ARK: Survival Evolved, Civilization VI, Stellaris, Meteor Butterfly Sword, Human: Fall Flat, Worms, Left 4 Dead 1 & 2, Minecraft, Torchlight II, and Age of Empires II.

Client Download#

EasyN2N (N2N launcher) v3.1.2

Server Installation Guide#

Manual Installation#

Terminal window
# Ubuntu, Debian, etc.
apt-get install libzstd -y
wget https://github.com/ntop/n2n/releases/download/3.0/n2n-3.0.0-1038.x86_64.rpm
rpm -i n2n-3.0.0-1038.x86_64.rpm
supernode -p 9527 -a 192.168.255.0-192.168.255.0/24 -f
# CentOS, OpenEuler, Rocky Linux, etc.
yum install libzstd -y
wget https://github.com/ntop/n2n/releases/download/3.0/n2n-3.0.0-1038.x86_64.rpm
rpm -i n2n-3.0.0-1038.x86_64.rpm
supernode -p 9527 -a 192.168.255.0-192.168.255.0/24 -f

One-Click Installation Script#

I prepared a one-click installation script. Run the following command to complete the installation:

Terminal window
wget https://script.bytesycn.cn/p2p/n2n-install.sh && chmod +x n2n-server.sh && ./n2n-server.sh

One-click installation script
One-click installation script
Installation complete
Installation complete

Verify the Installation#

Use netstat -tunlp to check whether the program is listening on port 9527.

View listening port
View listening port

N2N Client Tutorial#

Open the software and enter the N2N server’s IP address and port. Because automatic IP assignment was configured above, the virtual-network IP can be left blank. You may also manually configure an IP in the same subnet if you understand basic computer networking. The group name only needs to match: think of it as a room number—different numbers lead to different rooms.

  1. Open EasyN2N.
  2. Enter the N2N server IP address and port (for example: 43.163.81.102<9527>).
  3. Leave the virtual-network IP blank because automatic assignment is enabled, or set an IP in the same subnet manually.
  4. Set the same group name on every client; this is the virtual room number.
  5. Click the Start button.

The connection is established when the server status shows a green check mark and a virtual IP is assigned.

N2N client interface
N2N client interface

N2N client connected successfully
N2N client connected successfully

Once connected, you can start playing together.

Notes#

  1. If you use a cloud server, disable the system firewall (iptables/firewalld) and open the N2N port in the provider’s security group (the automation script uses 9527/TCP).
  2. Make sure every client uses the same group name.
  3. Choose a server in a geographically central location for the best network performance; otherwise latency may be high.

Support & Share

If this article helped you, please share or support!

Sponsor
Multiplayer Networking Guide: Build a Virtual LAN with Friends Around the World Using N2N
https://blog.bytesycn.cn/posts/b1851e8a-2315-455c-a331-14a289804d91/
Author
Ryan Zhang
Published at
2025-09-11

Comments

Profile Image of the Author
Ryan Zhang
Keep building, keep thinking, keep creating.
Announcement
Welcome to my blog!
Categories
Tags
Latest Moments
Site Statistics
Posts
30
Categories
7
Tags
42
Total Words
117,260
Running Days
0 days
Last Activity
0 days ago
Table of Contents