With a simple script you can automate the startup and shutdown of ngrok and your server. In addition, remember to close ngrok when you stop your server. Keep this in mind when connecting people to your server. Join your server and play! Note that each time you start ngrok, your public address will change. Tcp://0.:19565, I would instruct people to paste 0.:19565 into the Direct Connect box. For example, if my public ngrok address was This is the address your friends will connect to when they join your server. The address will be listed under Forwarding in the terminal window. See Part 1 of Installing Optifine Without Java to find the path where Minecraft manages its own copy of Java. You do not need to install Java separately to run Java edition if Minecraft is already installed on your system. Start the Minecraft server: java -jar server.jar nogui This works with LAN worlds too! Upon opening the world to LAN, write the port listed in the game's chat instead of 25565 in the ngrok command. If you're using a port other than the default port, update the last argument above accordingly. Steps 1 and 2 can be performed in any order.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |