TCP Port Routing For Multiple Minecraft Servers on One Computer
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
TCP Port Routing For Multiple Minecraft Servers on One Computer
I have a server computer running Linux Lite or Ubuntu Server which I use to run multiple minecraft servers.
I would like to set it up so I can direct multiple addresses to my one computer and then my computer can route each to a different port based on which domain was referenced.
For example:
My DNS record says the following addresses are directed to the IP 100.105.36.3 (Random IP representing the public ip of my router for the example):
mc1.domain.com
mc2.domain.com
mc3.domain.com
Then I have port 25565 (standard minecraft server port) forwarded to my server computer.
I then want my server computer to be able to route connections that address mc1.domain.com to port 1001 and from mc2.domain.com to port 1002 and from mc3.domain.com to port 1003.
Is there a program I can use to simply route connections to my servers like that? I'm unable to add SRV records to my DNS Records.
Last edited by Jump4fun; 08-26-2021 at 02:35 AM.
Reason: More details added
Not that way I don't think. SRV records are how I would approach it, did it awhile back for my lan. I'm not sure how you would get those srv records visible to people on the internet though.
I'm not sure how you would get those srv records visible to people on the internet though.
Would depend on how the OP has his external DNS configured. They would have to configure multiple open ports on their public router, one per server, and have them redirected by the router to the appropriate backend.
From what I can understand, you have multiple minecraft server instances, running on different ports , inside one operating system (ubuntu linux) on your "server" , which is behind a router.
So what is stopping you from adding port forwarding rules on your router ? Your router has an external public IP anyway, right ?
From what I can understand, you have multiple minecraft server instances, running on different ports , inside one operating system (ubuntu linux) on your "server" , which is behind a router.
So what is stopping you from adding port forwarding rules on your router ? Your router has an external public IP anyway, right ?
I want the people accessing the servers to not have to add a port to the end of the address. I'd like them to be able to address them as mc1.domain.com and mc2.domain.com rather than mc.domain.com:25565 and mc.domain.com:25566
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.