Article directory
Reprinted from the remote penetration article: [Minecraft Server Opening Tutorial] Use the MCSM panel to build a Minecraft server with one click, and use the intranet to penetrate the public network for remote connection
foreword
MCSManager is an open source, distributed, lightweight, one-click service management tool that supports most game servers and console programs. We can use it to deploy and build Minecraft Minecraft servers with one click. online.
Now the general home LAN broadband does not have a public network IP, and friends who are not in the same LAN cannot directly connect. So in this tutorial, we also do intranet penetration at the same time, map the local port to the public network, use the generated public network address to remotely connect, break through the limitations of the local area network, do not need a public network IP, do not need to set up a router, and do not need Buy a cloud server.
1. Mcsmanager installation
Click to download Mcsmanager , we download the windwos version [does not support the installation of systems below windwos10].
After downloading, unzip and open, then click the launcher to start the background program
After starting, it will automatically jump to the browser to open. If there is no jump, you can directly enter it in the browser localhost:23333
. For the first visit, we need to create an account
Then you can enter the panel interface
2. Create a Minecraft server
In the panel, we click Quick Start to create a Minecraft server
Choose one-click service
Here you can freely choose the corresponding version, here select the original version 1.19.2, click to install
Then enter the name of the server, wait for the installation to complete after entering
After the installation is complete, click to go to the instance console
Then the online mode appears, we click below to skip the selection of setting the online mode
Next, modify the configuration file, cancel the verification of the genuine server, and click File Management
Find server.properties
the file and click edit
Change online-mode
the value to false
, then save and close
Then start the instance, where the instance means the service
The startup is successful, we can see the port information, the port number is:25565
3. Local test connection
Open the Minecraft launcher, select the same version as the server 1.19.2, start
then click on multiplayer
Normally, this local server will be automatically searched, and you can directly click to connect
If not, we can click the direct connection below, and then enter the address: 127.0.0.1:25565
, click to join the server
Then we can see that successfully entered the game
4. Intranet penetration
After testing that the local connection is normal, we continue to do intranet penetration to realize remote connection in different network environments.
Here we use cpolar internal network penetration to achieve, support http/https/tcp protocol, no traffic limit, no public network IP, no need to configure routers. After the local installation is successful, create a tunnel to map the Minecraft service port to the public network, and then use the generated public network address to connect remotely.
cpolar official website: https://www.cpolar.com/
4.1 Install cpolar intranet penetration
For windows system, you can directly download the zip compressed package suitable for Windows platform from the official website, get the cpolar installation package after decompression, and then double-click the installation package to install it by default.
4.2 Create a tunnel to map the intranet port
After cpolar is successfully installed, access the cpolar web UI management interface (default is local port 9200) on the browser, access it in http://本地ip地址:9200
the form of , for example http://127.0.0.1:9200/
, and log in with the cpolar account
After successful login, click Tunnel Management on the left - Create Tunnel:
- Tunnel name: you can customize the name, be careful not to duplicate the existing tunnel name
- Protocol: select tcp protocol
- Local address: 25565 (port of online server)
- Port Type: Random ephemeral TCP port
- Region: China VIP
click创建
After the tunnel is successfully created, click the status on the left dashboard - online tunnel list, you can see that the tunnel of Minecraft that has just been successfully created has generated a corresponding public network address, and we will copy it down
5. Remote online test
Open my world, click to connect directly
Use the cpolar public network address we created above to directly connect to test
Test remote connection successfully
6. Configure fixed remote online port address
It should be noted that the above steps use a free random temporary tcp port address, and the generated public network address is a random temporary address, which will change randomly within 24 hours.
In order to facilitate the remote connection of small partners, we will configure a fixed TCP port address for it next, which will not change, and there is no need to repeatedly modify the server address every day.
To configure a fixed tcp port address, you need to upgrade cpolar to a professional package or above.
6.1 Reserve a fixed TCP address
Log in to the cpolar official website, click on the reservation on the left, find the reserved tcp address, let's reserve a fixed tcp address for Minecraft:
- Region: Select China VIP
- Description: It is a note, which can be customized
click保留
After the address is successfully reserved, the system will generate a corresponding fixed public network address and copy it down
6.2 Configure fixed TCP address
Access port 9200 on the browser, http://127.0.0.1:9200/
log in to the cpolar web ui management interface, click on the tunnel management on the left dashboard - tunnel list, find the minecraft tunnel we created before, and click on the right编辑
Modify the tunnel information and configure the successfully reserved fixed tcp address into the tunnel
- Port type: modified to fixed tcp port
- Reserved tcp address: fill in the successfully reserved address
click更新
After the tunnel is successfully updated, click the status on the left dashboard - online tunnel list, find the minecraft tunnel, and you can see that the public network address has been updated to a fixed tcp address.
7. Use a fixed public address to connect remotely
Test direct connection, enter the above fixed public network TCP address port remote connection
The public network remote connection is successful! Now, the public network address will no longer change randomly.