Mojang allows players tohost their own Minecraftservers using the serverJAR file. By hosting yourown minecraft server listyou are able to alter theservers settings and playwith friends.
The first thing you willneed to do is open yourcommand prompt andfind out which version ofJava is installed on yourcomputer. You can justinstall the newestversion, but running thecommand "java -version"will allow you to confirmthat you are running Java7.
The last step is to download theMinecraft_Server.exe file which willlaunch the JAR file inside Windows withthe proper parameters. The download isavailable on Minecrafts official website.
If you wish to change the allotted RAM (servermemory) you can create a batch file which will launchthe Minecraft_Server.exe. Simply open Notepad andpaste the following line of code:64bit"C:Program Files (x86)Javajre7binjavaw.exe"-Xms1024m -Xmx1024m -jar "Minecraft_Server.exe"
32bit"C:Program FilesJavajre7binjavaw.exe" -Xms1024m-Xmx1024m -jar "Minecraft_Server.exe"Replace 1024 with the amount of RAM you wish to giveyour server in megabytes amd save the file as"start.bat". You can use Google to do gigabyte tomegabyte calculations. Opening this file will start yourserver.
After getting your server running you and friendsconnected on the same local network can join theserver by opening the Minecraft client and joining theserver IP "localhost". If you would like to play withfriends online, you must port forward your router sooutside connections can connect to your server. Youcan also install Hamachi, a program which gives you apublic IP address. This is a complicated process andmost residential internet connections cannot handle alarge amount of players online.
http://www.mc-index.comTo begin configuring your server you can open theserver.porperties file that was created when you firstlaunched your Minecraft server. This file contains themain settings for your server, and after making edits youshould stop the server and start it again for changes totake effect. Your servers folder will also contain a filecalled ops.txt. This text file allows you to list players whoshould have administrative privleges on the server. Afterplacing your username in the file, save it and restart theserver. Your banned-players.txt list is a useful tool forcombatting malicious users, and the whitelist.txt file maybe used to block all players except those listed.