The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Redirect to a Game Server

Discussion in 'General Discussion' started by osfdeath, Sep 3, 2003.

  1. osfdeath

    osfdeath Well-Known Member

    Joined:
    Aug 29, 2003
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
    I've been asked by quite a few people now if this can be done.

    If someone has a game server set up at

    IP = 123.456.7.8
    Port = 9876

    is there any way for him/her to create a redirect to that game server?
    Can't be done in redirects as it has to be http and I've attempted to do it in subdomains but for some reason it doesn't work

    Let's say their domain is mydomain.com, they'd like to have the URL "games.mydomain.com" redirecting to IP address 123.456.7.8:9876

    I know this can be done with a Dynamic DNS server but is it possible in Cpanel?

    cPanel.net Support Ticket Number: Can it be done?

    cPanel.net Support Ticket Number:
     
  2. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    This is easy to do. SSH to your nameserver and edit /var/named/domain.com.db Add at the bottom:

    games 14400 IN A 123.456.7.8

    Save, close and execute: ndc reload

    Now anything requesting games.domain.com will be directed to 123.456.7.8

    cPanel.net Support Ticket Number:
     
  3. osfdeath

    osfdeath Well-Known Member

    Joined:
    Aug 29, 2003
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
    But that isn't quite what I want - that I can do through subdomains right in CPanel

    What I want is for any traffic calling for "games.domain.com" to forward (not via http) to the IP 123.456.7.8 and the port 9876

    It's not going to be just one forward here - there'll be many

    Something like this:

    games.domain.com points to 123.456.7.8:9876
    games1.domain.com points to 123.456.7.8:6547
    games2.domain.com points to 123.456.7.8:1440
    and so on

    cPanel.net Support Ticket Number:
     
  4. ciphervendor

    ciphervendor Well-Known Member

    Joined:
    Aug 26, 2002
    Messages:
    1,052
    Likes Received:
    0
    Trophy Points:
    36
    well then keep the subdomains local and setup either meta-tag redirects or html frames for the offsite IPs/ports.

    cPanel.net Support Ticket Number:
     
  5. osfdeath

    osfdeath Well-Known Member

    Joined:
    Aug 29, 2003
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
    That won't work (as far as I can see anyways)

    I'm not talking about people using these subdomains via a browser - they need to get to the IP:Port through games like Half Life, Battlefield 1942, Tribes 2, jedi outcast etc

    That's what I'm basically attempting to accomplish here.
    Rather than telling someone our game server is at an IP, it'd be easier to tell the to go to game.domain.com (where "game.domain.com" points to an IP and a PORT)

    cPanel.net Support Ticket Number:
     
  6. osfdeath

    osfdeath Well-Known Member

    Joined:
    Aug 29, 2003
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
    No ideas here?

    :(

    :bump

    cPanel.net Support Ticket Number:
     
  7. osfdeath

    osfdeath Well-Known Member

    Joined:
    Aug 29, 2003
    Messages:
    144
    Likes Received:
    0
    Trophy Points:
    16
    ....anyone?

    It must be possible to do

    Or is there any scripts anyone is aware of I could use in conjunction with a redirect maybe?

    cPanel.net Support Ticket Number:
     
Loading...

Share This Page