HOW TO SETUP A MINECRAFT SERVER 1.8?

I watched this video on how to make a mc server in 1.8

Everything worked as it should, except I couldn't enter my server, so I set the "online mode" to "false" instead of "true".

The server worked fine for a while, but when I fiddled around with the server properties and the "world" folder, I could'nt connect to my server any more.

I started everything over and installed a fresh minecraft server. Right after that, my cmd box (that shows up when I open the run.bat file) kept saying: "**** FAILED TO BIND TO PORT! The exception was: java.net.BindException: Can't assign requested address: bind Perhaps a server is already running on that port?"

I looked at so many videos and forums but nothing seems to work. When I remove my ip address from the server properties, the cmd tells me to put online mode to "true". When I do that the cmd shows that nothing is wrong, but I still can't connect to my server.

Can someone Please Help ME?
This is really getting annoying and I just want to play minecraft with my friends.

Online-mode basically separates players with and without a premium (paid) Minecraft account from joining your server. Offline mode allows any one with any name to join, online mode requires you to have purchased Minecraft officially.

Moving on to the port issue. I had that a while ago and what I suggest you do is make sure you've correctly port-forwarded Minecraft's port (25565) on your computer's IP address which is usually defaulted to (192.168.0.197) or something like that. It's different for every router so enter your default gateway into the URL bar in your browser. You can find your default gateway by typing "ipconfig" in the command prompt.

In summary, check and make sure your port-forwarding is correct and double check it at "canyouseeme.org" with the port 25565. Then make sure Online-Mode is active and you, and your friends, have premium Minecraft accounts.

Thank you for your answer. I actually managed to fix this on my own, but since you gave a reasonable and detailed answer, I give you 5 stars!
Cheers.