Use the MCSM panel to build a Minecraft server with one click, and connect the intranet to the public network remotely

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].

image-20230410113506522

After downloading, unzip and open, then click the launcher to start the background program

image-20230410114100144

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

image-20230410114558169

Then you can enter the panel interface

image-20230410115933776

2. Create a Minecraft server

In the panel, we click Quick Start to create a Minecraft server

image-20230410130326942

Choose one-click service

image-20230410130506903

Here you can freely choose the corresponding version, here select the original version 1.19.2, click to install

image-20230410130608199

Then enter the name of the server, wait for the installation to complete after entering

image-20230410130711311

After the installation is complete, click to go to the instance console

image-20230410131004263

Then the online mode appears, we click below to skip the selection of setting the online mode

20230418100958

Next, modify the configuration file, cancel the verification of the genuine server, and click File Management

image-20230410142251608

Find server.propertiesthe file and click edit

image-20230410142324796

Change online-modethe value to false, then save and close

image-20230410142549715

Then start the instance, where the instance means the service

image-20230410132623312

The startup is successful, we can see the port information, the port number is:25565

image-20230410142836097

3. Local test connection

Open the Minecraft launcher, select the same version as the server 1.19.2, start

image-20230410140232735

then click on multiplayer

image-20230410140650280

Normally, this local server will be automatically searched, and you can directly click to connect

image-20230410140747424

If not, we can click the direct connection below, and then enter the address: 127.0.0.1:25565, click to join the server

image-20230410140922966

Then we can see that successfully entered the game

image-20230410143422006

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.

20230418095405

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地址:9200the form of , for example http://127.0.0.1:9200/, and log in with the cpolar account

20230106104443

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创建

image-20230410143855988

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

image-20230410144102850

5. Remote online test

Open my world, click to connect directly

image-20230410144553485

Use the cpolar public network address we created above to directly connect to test

image-20230410144427915

Test remote connection successfully

image-20230410144723100

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保留

image-20230410145617719

After the address is successfully reserved, the system will generate a corresponding fixed public network address and copy it down

image-20230410145730160

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编辑

image-20230410145809245

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更新

image-20230410145839505

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.

image-20230410145931657

7. Use a fixed public address to connect remotely

Test direct connection, enter the above fixed public network TCP address port remote connection

image-20230410150216986

The public network remote connection is successful! Now, the public network address will no longer change randomly.

image-20230410150247469

Guess you like

Origin blog.csdn.net/ks_wyf/article/details/131025694
Recommended