port forwarding, kinda

Posted on 2006-04-17
Last Modified: 2010-04-20
I've got a dedicated server running fedora with plesk.  I am running a teamspeak server which consists of a number of virtual servers per se that all respond on different ports.  Right now there are servers running on ports 65520-65530.  This works just ducky because it allows me to pass along the server address as or something which seams simple enough to me.  But people seem to have an adversion to numbers.  So I am wondering if it is posible to use a subdomain and drop the port.  So say a sub domain of would point the teamspeak client to 65530.  The teamspeak client will automatically use its default port of 3535 or something around there if no port is given.  So I would need to forward between and  Is this even posible?
Question by:purfus
    LVL 27

    Expert Comment

    "forward between and  Is this even posible?"
    Yes, BUT only if you have separate IP for each such ''. Otherwise it's impossible.
    LVL 19

    Expert Comment

    it's kind of easy if you can edit the apache config file.

    what you need is "reverse proxy" feature, where your port 80 will ask the other servers (no matter if they are running at or at and offer them based on the site name.
    I wrote a quick howto on the matter but it is in spanish. if you can read that then go to, but if you need it in english look at:
    (read this at the end of the others since it's incomplete and only looks at one part):

    happy linuxing
    LVL 27

    Expert Comment

    is a teamspeak server runs under apache control?
    LVL 27

    Expert Comment

    or at least on http protocol :)
    LVL 3

    Author Comment

    I'm not sure what protocol it uses.  Here's a packet sniff from my client side donno if it helps or not.  And thank you redimido.  I'm not sure I understand quite what your telling me but I will go through those resources and figure it out.  Until than I will leave the question open though.

    Ethernet II (Packet Length: 72)
          Destination:       00-13-46-84-cb-c3
          Source:       00-90-f5-48-ac-63
    Type: IP (0x0800)
    Internet Protocol
          Version: 4
          Header Length: 20 bytes
                .0.. = Don't fragment: Not set
                ..0. = More fragments: Not set
          Fragment offset:0
          Time to live: 128
          Protocol: 0x11 (UDP - User Datagram Protocol)
          Header checksum: 0x0 (Incorrect - Checksum should be 0xd82c)
    User Datagram Protocol
          Source port: 2864
          Destination port: 65530
          Length: 8
          Checksum: 0xd09 (Correct)
    Data (24 Bytes)
    LVL 3

    Author Comment

    Oh and yes I only have one ip address and def cant afford to buy one for each of the virtual ts servers.
    LVL 27

    Assisted Solution

    From that point my answer is: "no".
    You cant use different names or some other tricks to allow users connect without specifying port number
    Even redimido's comments will not help.

    The reason is many-to-one resolution of any name-to-ip DNS  request. There is no other means to transfer host name via opaque UDP protocol (at least it could be possible via HTTP 1.1).
    So any name will point to the same IP. Without port number it will be default port number and there are no means to distinguish one DNS name from another.
    LVL 19

    Accepted Solution

    I did not check that teamspeak is a VoIP application. (checked at

    So I misunderstood such app would be something running under apache/httpd

    My fault. Sorry.

    It's mind of impossible unless you create some tipe of reverse proxy for udp. I really have not read anything for such kind of proxy

    so I went to freshmeat and searched for udp proxy and here are some results (you need to figure out if one or more of these can work for you):

    good luck
    LVL 3

    Author Comment

    hmm, ok.  Well that all makes sense.  It does seem odd to me that the protocol doesn't support it.  I mean I would think the server should be able to recieve a request for information at a certain address and interpret it in any way.  But the reasons it doesn't work do make sense.  Perhaps it will be directly supported in the future.  Thanks for all the help.

    Featured Post

    How to improve team productivity

    Quip adds documents, spreadsheets, and tasklists to your Slack experience
    - Elevate ideas to Quip docs
    - Share Quip docs in Slack
    - Get notified of changes to your docs
    - Available on iOS/Android/Desktop/Web
    - Online/Offline

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    UPD maximums on Red Hat 6 95
    Help with Ubuntu 14.04 LTS 10 112
    Cron jobs 12 64
    Linux TCP flaw lets 'anyone' hijack Internet traffic 9 65
    I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
    Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now