Question Hosting three servers with sub domains

Discussion in 'General Help' started by casperround, Aug 10, 2015.

Thread Status:
Not open for further replies.
  1. Offline

    casperround

    I'm trying to host three servers on my domain, same IP, and same port although using the sub domain as the direction to which server the user is connecting to.
    I'm hosting on Ubuntu Server.
    For example:
    Port: 25565 IP: 40.40.40.40 / classic.example.com -> Classic MC Server
    Port: 25565 IP: 40.40.40.40 / mc.example.com -> Bukkit MC Server
    Port: 25565 IP: 40.40.40.40 / tekkit.example.com -> Tekkit MC Server

    IP & Domain's used as example.
    If anyone could help me with this, it would be great. Many thanks.
     
  2. @casperround I can't remember if you can do this but couldn't you just make each sub domain go to a different server? Sine they all need a different port it could just redirect to that port.
     
  3. Offline

    casperround

    Well I've tried directing the subdomain to a port, so I don't have to type in the port for the MC server. Although by default Minecraft goes to 25565, even when going through mc.example.com on post 25575
     
  4. Offline

    Boomer

    you cant have three different services using the same port on the same physical ip

    You can't direct an IP to a specific port without special services in place to do so (SVN support from your dns records), otherwise that is how you would put one domain name to a given ip:port pair
     
    Last edited: Aug 10, 2015
  5. Offline

    DanishDuckling

Thread Status:
Not open for further replies.

Share This Page