Author Topic: Hosting server  (Read 11411 times)

0 Members and 1 Guest are viewing this topic.

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Hosting server
« on: January 30, 2013, 02:04:53 pm »
I may want to set up a server in my home someday in the future and I was wondering what I would have to do. Things I have in mind:
  • SVN stuffs
  • Minecraft server
  • Possibility to host websites (is this possible?)
I've never set up a server or worked with it so I don't know what I should do soft- and hardware wise.
« Last Edit: January 30, 2013, 02:05:35 pm by ElementCoder »

Some people need a high five in the face... with a chair.
~EC

Offline Spyro543

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1189
  • Rating: +74/-3
    • View Profile
Re: Hosting server
« Reply #1 on: January 30, 2013, 02:16:56 pm »
For hosting a Minecraft server over LAN, just get the server application or Bukkit, configure it, and run it. In Minecraft, connect to that computer's IP. To get the IP address for the computer, type ipconfig in cmd.exe or use an iOS app (Fing is nice). Most Computers can run a minecraft server, even my 12 year old desktop. For hosting a website, get Apache. I never found it very hard to use, and PHP is usually easy to install on it.

Offline pimathbrainiac

  • Occasionally I make projects
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1731
  • Rating: +136/-23
  • dagaem
    • View Profile
Re: Hosting server
« Reply #2 on: January 30, 2013, 02:45:25 pm »
Hardware:
A custom (you build it) PC with:

(due to MC) at least 4 GB RAM
(due to general servering/hosting) multiple TB Disk space
(due to the fact that there is no need for a better one) really cheap graphics card (only needed for setup)
(due to need for hard drive space) Large case with plenty of bays
(due to need in general) A power supply
(due to not wanting your server to crash) A really dependable motherboard (this must be REALLY, REALLY, REALLY GOOD)
(due to multiple people being on the server) A REALLY, REALLY, REALLY GOOD cpu (no joke, more cores = better in this case)
(due to always being on and tons of potential use) FANS FANS FANS and HEATSINKS HEATSINKS HEATSINKS
(due to server) Wired internet card, and this must be the best you can get for your money
anything needed to build a computer that I have not mentioned

And most importantly: the networking components that are not part of the computer

The fastest ISP in your area
Wired internet
Everything else necessary for networking

Software:

A servering linux (Ubuntu server works well)
Apache server
Java (MC)
WINE Is Not an Emulator (aka WINE) (for running the server EXE for minecraft)
Minecraft server
A web browser

On the networking side:

Make your IP static
Port forwarding necessary (look up how to do this PROPERLY)
Security programs out-the-wazoo

That's what it takes to make a public server... (If I forgot to mention something, please let me know)
I am Bach.

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: Hosting server
« Reply #3 on: January 30, 2013, 03:32:58 pm »
[...]
On the networking side:

Make your IP static
[...]

This is what you would need to host your own website... I have never done it because it can be expensive...



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline ElementCoder

  • LV7 Elite (Next: 700)
  • *******
  • Posts: 611
  • Rating: +42/-2
    • View Profile
Re: Hosting server
« Reply #4 on: January 30, 2013, 03:50:17 pm »
Wow pimath that's the best explanation/list I've seen so far anywhere. You showed me exactly what I need to do, thanks! Now to find the time and money to do this, but I'm not sure it's gonna happen because my parents pay the internetz and they don't like paying more for what they do not use :P

Some people need a high five in the face... with a chair.
~EC

Offline ben_g

  • Hey cool I can set a custom title now :)
  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1002
  • Rating: +125/-4
  • Asm noob
    • View Profile
    • Our programmer's team: GameCommandoSquad
Re: Hosting server
« Reply #5 on: January 30, 2013, 04:02:30 pm »
...
WINE Is Not an Emulator (aka WINE) (for running the server EXE for minecraft)
...
Thi bukkit server is a normal jar file that should run on any platform. The vanilla minecraft serve can also be downloaded as jar iirc.
My projects
 - The Lost Survivors (Unreal Engine) ACTIVE [GameCommandoSquad main project]
 - Oxo, with single-calc multiplayer and AI (axe) RELEASED (screenshot) (topic)
 - An android version of oxo (java)  ACTIVE
 - A 3D collision detection library (axe) RELEASED! (topic)(screenshot)(more recent screenshot)(screenshot of it being used in a tilemapper)
Spoiler For inactive:
- A first person shooter with a polygon-based 3d engine. (z80, will probably be recoded in axe using GLib) ON HOLD (screenshot)
 - A java MORPG. (pc) DEEP COMA(read more)(screenshot)
 - a minecraft game in axe DEAD (source code available)
 - a 3D racing game (axe) ON HOLD (outdated screenshot of asm version)

This signature was last updated on 20/04/2015 and may be outdated

Offline Vogtinator

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1193
  • Rating: +108/-5
  • Instruction counter
    • View Profile
Re: Hosting server
« Reply #6 on: January 30, 2013, 04:19:33 pm »
You can use (almost) any PC you can find. My Server is an 2,0 GHz Athlon II XP 2400+ and has 512 MB RAM.
Minecraft Server runs fine, while Apache runs in the background.
Also, you don't need a static IP, dynamic dns should be enough.
dyndns.org was free until last year, IIRC.
But there are still many free dns providers available.

My advice: Use Linux, but not Ubuntu.
It's buggy, slow as hell and a pain to configure.
With opensuse you have yast and don't have to configure everything with weird config files nobody understands.

You don't need new internetz, DSL 16000 is enough for basic hosting and minecraft (~120 kb/s upload).
« Last Edit: January 30, 2013, 04:30:30 pm by Vogtinator »

Offline Juju

  • Incredibly sexy mare
  • Coder Of Tomorrow
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 5730
  • Rating: +500/-19
  • Weird programmer
    • View Profile
    • juju2143's shed
Re: Hosting server
« Reply #7 on: January 30, 2013, 04:34:17 pm »
Yeah you don't really need a static IP and state-of-the-art everything. Just use dynamic DNS instead, it's easy to set up and less expensive too.

I don't really know why people give IPs instead of hostnames even though they have a domain name for their site (maybe they think it doesn't work but it actually does, a misconception that could date back to old FPS games without any DNS support I guess). That's exactly the point of DNS, so you don't have to remember numerical IPs.

http://freedns.afraid.org/ is a pretty nice one with tons of domain names to choose a subdomain from.

For the software, you might want to get a bare-bones Linux distro such as Arch Linux and desactivate pretty much every process but the system ones (it needs about 25 MB RAM) so you can give more RAM for the web server and Minecraft.

Also I should look at clustering computers.
« Last Edit: January 30, 2013, 04:36:30 pm by Juju »

Remember the day the walrus started to fly...

I finally cleared my sig after 4 years you're happy now?
THEGAME
This signature is ridiculously large you've been warned.

The cute mare that used to be in my avatar is Yuki Kagayaki, you can follow her on Facebook and Tumblr.

Offline pimathbrainiac

  • Occasionally I make projects
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1731
  • Rating: +136/-23
  • dagaem
    • View Profile
Re: Hosting server
« Reply #8 on: January 30, 2013, 05:13:23 pm »
Wow pimath that's the best explanation/list I've seen so far anywhere. You showed me exactly what I need to do, thanks! Now to find the time and money to do this, but I'm not sure it's gonna happen because my parents pay the internetz and they don't like paying more for what they do not use :P

Those were specifically for your server IF you are doing web hosting, which you said was likely. A Minecraft Dedicated server would be less of a price, because the hosting requires almost everything to be top-of-the-line. A dedicated server you can run off any PC with good enough RAM, Internet connection, and CPU.
I am Bach.

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: Hosting server
« Reply #9 on: January 30, 2013, 07:14:01 pm »
And to server os, use debian, it is like the most stable one.

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!

Offline pimathbrainiac

  • Occasionally I make projects
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1731
  • Rating: +136/-23
  • dagaem
    • View Profile
Re: Hosting server
« Reply #10 on: January 30, 2013, 07:18:44 pm »
And to server os, use debian, it is like the most stable one.

True... I said Ubuntu as an example... It's not really the best one for servering. Go with Sorunome's post
I am Bach.

Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: Hosting server
« Reply #11 on: January 30, 2013, 08:38:00 pm »
Yeah you don't really need a static IP and state-of-the-art everything. Just use dynamic DNS instead, it's easy to set up and less expensive too.

I don't really know why people give IPs instead of hostnames even though they have a domain name for their site (maybe they think it doesn't work but it actually does, a misconception that could date back to old FPS games without any DNS support I guess). That's exactly the point of DNS, so you don't have to remember numerical IPs.

http://freedns.afraid.org/ is a pretty nice one with tons of domain names to choose a subdomain from.

For the software, you might want to get a bare-bones Linux distro such as Arch Linux and desactivate pretty much every process but the system ones (it needs about 25 MB RAM) so you can give more RAM for the web server and Minecraft.

Also I should look at clustering computers.

Wait. So you don't need a static IP? How does the DNS know when my server IP changes.



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline jpt

  • LV1 Newcomer (Next: 20)
  • *
  • Posts: 13
  • Rating: +0/-0
    • View Profile
    • Bossing Around
Re: Hosting server
« Reply #12 on: January 30, 2013, 10:58:20 pm »
Wait. So you don't need a static IP? How does the DNS know when my server IP changes.

Nop. Just use www.no-ip.org ... That's how i have my Minecraft server running 24/7 at home and i can give ppl a nice url instead of an IP




Offline flyingfisch

  • I'm 1337 now!
  • Members
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1620
  • Rating: +94/-17
  • Testing, testing, 1...2...3...4...5...6...7...8..9
    • View Profile
    • Top Page Website Design
Re: Hosting server
« Reply #13 on: January 30, 2013, 11:04:18 pm »
Wait. So you don't need a static IP? How does the DNS know when my server IP changes.

Nop. Just use www.no-ip.org ... That's how i have my Minecraft server running 24/7 at home and i can give ppl a nice url instead of an IP
Yeah, well if you want to do websites you need to do some CNAME and redirect juggling, also, you need a faster connection than me (upload: 50k/s, download: 100k/s)



Quote from: my dad
"welcome to the world of computers, where everything seems to be based on random number generators"



The Game V. 2.0

Offline Jim Bauwens

  • Lua! Nspire! Linux!
  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1881
  • Rating: +206/-7
  • Linux!
    • View Profile
    • nothing...
Re: Hosting server
« Reply #14 on: January 31, 2013, 07:34:57 am »
I've have been using Ubuntu Server 10.04 LTS for several years now, and I have never had to put the server down because it crashed or something similar. I'd have had an uptime of more than a year and a half if I wouldn't have had to shut it down because of a hardware issue.

My server has a static IP, and I use it daily for mail, sharing media, hosting a website and providing several other services. Ubuntu 10.04 has proved to me to be perfect for a server, and I will continue to use it. And I recommend it too.

As for server hardware, I recommend you to also use a RAID setup. This doesn't necessarily need to be hardware RAID, but that's always better if you can get it :)