Do you want to set-up your own Minecraft server for private or public use? Well if you're reading this post
now, I'm sure that you do. This post will be a tutorial on how to set up your very own Minecraft server. Anyway, down to business.
First, go to http://dl.bukkit.org and download Craftbukkit for your current Minecraft version. . Once you have downloaded, make a new folder on your desktop named "MC Server" and put Craftbukkit.jar in the folder.
Once you have put Craftbukkit.jar into the folder, make a new text document with notepad or your favorite text editor (notepad is recommended). Go to http://wiki.bukkit.o...ing_up_a_server and put whatever code fits your computer into notepad. Save the text document as "Startup.bat" and run it; once it finishes, enter "Stop" into the console. Next, go to the file called "server.properties" and edit that to whatever you want, but DO NOT put anything in "Server IP." Now here comes the hard part: port forwarding.
If you already know how to port forward, you can skip this portion of the tutorial. To begin, go to http://portforward.com, select your router, and skip the advertisement. You'll come to a web-page that looks like: http://prntscr.com/6wo9e. Scroll down until you see a listing called "Minecraft Server." There it will show you step-by-step how to port forward for your router for a Minecraft server. Also, when port forwarding make sure to put your internal IP address in the place where it says "IP Address."
Now, in order for anyone else to connect to your server, you have to give them your external IP address. To find that, go to http://cmyip.com. For you to connect, you either connect with localhost (127.0.0.1) or your IPv4 gateway (internal IP).