Article: This is the folder that will contain the server software and all the files. You can name it anything you want. It's recommended that you name it something recognizable like "Minecraft Server" or similar. You can create it anywhere that is accessible on your computer. Use the following steps to create a new folder: Navigate to the location you want to create the folder in File Explorer on Windows or Finder on Mac. Right-click any blank area and click New Click Folder. Type a name for the folder. The Minecraft server application program is a Java (.jar) file. Use the following steps to download the Minecraft server application file. Go to https://www.minecraft.net/en-us/download/server Click the green text that says minecraft_server.1.15.2.jar. If your browser says the file can be harmful, click Keep. By default, downloaded files can be found in your Downloads folder on PC and Mac. Locate the "server.jar" file and copy or cut it. Then navigate to the server folder you just created and paste the file in the server folder. The way you ready the file for use is different depending on if you are using Windows or Mac. Windows: Right-click inside your server folder and click New. Click Text document. Name the text document "start" Open the text document. Type "@ECHO OFF" in the first line (no quotations). Copy and paste "java -Xmx1024M -Xms1024M -jar server.jar nogui" into the second line (Without quotes, make sure "server.jar" in the command line matches the file name of the .jar file) Type "pause" on the third line (no quotations). Click File. Click Save as. Select "All files" next to "Save as type". Change the ".txt" extension to ".bat". Click Save. Mac Open TextEdit Choose "Make Plain Text" from the "Format" menu. Copy and paste "#!/bin/bash" into the first line (without quotes) Copy and paste "cd "$(dirname "$0")"" into the second line (without the first and last quote marks) Copy and paste "exec java -Xms1G -Xmx1G -jar server.jar nogui" (without the quotes, make sure "server.jar" matches the filename of the server folder.). Save the file in your server folder as "start.command" file (change the ".txt" extension to ".command"). After you've created a "start.bat" file on Windows, and a "start.command" file on Mac, run the file to run the "server.jar" file. If you recieve any errors, make sure you have installed the latest version of Java, and that is the appropriate version for your operating system (i.e. 64-bit, 32-bit). Use the following steps to run the "start" file: Windows: Double-click the "start.bat" file. Mac: Open the Terminal. Type "chmod a+x ," (including the space, but not the quotes), Drag the .command file into the terminal window. Press the Enter key. Double-click the start.command file. This is required in order to run the server software. Use the following steps to agree to the end user license agreement: Open "eula.txt" in your server folder. Change "eula=false" to "eula=true" at the end. Click File Click Save. Use the following steps to open the file in NotePad or TextEdit: Right-click the "server.properties" file. Click Open with. Click NotePad or TextEdit. Type a value after the "=" signs to change the settings. If you don't know what a setting is, leave it as it is. Also locate teh server port number and write it down. Some of the following are server settings you may want to change include the following: gamemode=survival: Change "survival" to whatever game mode you want. You can change it to "survival", "creative", or "adventure". difficulty=easy: Change "easy" to whatever difficulty you want. You can change it to "peaceful", "easy", "normal", or "hard". allow-nether=true: Change "true" to "false" to turn off the Nether. player-idle-timeout=0: To kick idle players from the server, change "0" to the number of minutes you want to allow a player to remain idle. spawn-monsters=true: To turn off monster spawning, change "true" to "false". pvp=true: To turn off Player-vs-player, change "true" to "false". hardcore=false: To enable hardcore mode, change "false" to "true". enable-command-block=false: To allow command blocks, change "false" to "true". max-players=20: Change "20" to the maximum number of players you want to allow on your server. server-port=25565: Only change the port number if you are using Port Forwarding on your router. Make a note of the port number. You will need it later. spawn-npcs=true: To disable the spawning of non-player characters, change "true" to "false". allow-flight=false: To enable flying, change "false" to "true". level-name=world: Change "world" to whatever you want to name your world. view-distance=10: To increase the view distance, change "10" to a larger number. To lower the view distance, change "10" to a lower number. spawn-animals=true: To turn off animal spawning, change "true" to "false". white-list=false: Change "false" to "true" if you want to restrict players to those on your whitelist. Then, edit the "whitelist.json" file in your server folder, and add your username and the username of each player you want to allow access to your server. Press Enter after each username. generate-structures=true: To turn off random structure spawning, change "true" to "false". level-seed=: If you have a specific seed number you want to use to generate your world, you can enter it after the "=" sign. motd=A Minecraft Server: Change "A Minecraft server" to whatever you want as your message of the day. When you are done editing your server settings, use the following steps to save your file. Click File Click Save. Edit the "whitelist.jsof" file in your server folder to assign privileges. Administrators, or moderators, can issue commands from chat mode while the game is running to add or block players or otherwise change the game. You assign administrator privileges by entering usernames into the Ops or Admin (for older versions of Minecraft) list the same way as for the white list. You'll want to enter your own username to the Ops list, along with the username of someone you trust to assist you. You will need to enter this number into your router settings to allow your computer to act as a server. Use the following steps to get your IPv4 address and default gateway address: Windows: Click the Windows Start menu. Type "CMD". Click Command Prompt Type "ipconfig" and press "Enter". Note the number next to "IPv4 address" and "Default Gateway" Mac Click the Apple icon in the upper-right corner. Click System Preferences. Click the Network icon. Click the network that is connected in the sidebar to the left. Click Advanced in the lower-right corner. Click TCP/IP Note your IPv4 address, and your router (Default Gateway) address. Your default IP address is listed next to "Default Gateway" in the Command Prompt and next to "Router" on Mac. This opens your router's user interface. The default IP address is usually something like "192.168.0.1", or "10.0.0.1" or something similar. You will need to know the username and password to log in to your router. If you have not changed it, you should be able to find the default username and password by consulting the user's manual or manufacturer's web page for your router. The default username and password may also be listed on a label on the side of your router. Enter the username and password to log in to your router's user interface. Each router's user interface is different. Your Port Forwarding settings may be listed under "Advanced Settings" or something similar. Click the option to create a new port forwarding rule. You may be required to provide a name for the server. You can call it "MinecraftMC" or something similar. Enter your IPv4 address as the Internal IP address. Use the Minecraft server port number as the starting, ending, internal and external port number. By default, the port number is "25565". Select the option to use both TCP and UDP. Click the option to apply your new port forwarding setting. Save your router configuration if needed. In order for your friends to connect to your Minecraft server, you will need to give them your external IP address. Use the following steps to get your external IP address. Go to https://www.whatismyip.com/ Note the number next to "My Public IPv4 is:" at the top of the page. This starts the server.
What is a summary of what this article is about?
Create a folder for the server application program. Download the right Minecraft server application program. Copy the server.jar file to your server folder. Create a new start file. Run the "start" file. Agree to the End User License Agreement. Open the "server.properties" file in NotePad or TextEdit. Customize settings for the way you want to play Minecraft. Save your server settings. Determine who has administrator privileges. Get your default IP address and IPv4 address. Enter your default IP address into a web browser. Login to your router's user interface. Locate your Port Forwarding settings. Create a new Port Forwarding rule. Get your external IP address. Click the "start" file in your server folder.