LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   TCP Port Routing For Multiple Minecraft Servers on One Computer (https://www.linuxquestions.org/questions/linux-networking-3/tcp-port-routing-for-multiple-minecraft-servers-on-one-computer-4175699543/)

Jump4fun 08-22-2021 11:43 PM

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.

jmgibson1981 08-23-2021 04:04 PM

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.

TenTenths 08-24-2021 05:41 AM

Quote:

Originally Posted by jmgibson1981 (Post 6277935)
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.

Literally the second result from a Google search for "multiple minecraft servers on one ip" gives this guide: https://www.reliablesite.net/hosting...-servers-1-ip/

Jump4fun 08-26-2021 02:38 AM

Is there a way to do that without SRV Records? I'm Unable to add SRV records to my DNS records.

TenTenths 08-26-2021 02:44 AM

Quote:

Originally Posted by Jump4fun (Post 6278705)
Is there a way to do that without SRV Records? I'm Unable to add SRV records to my DNS records.

Why can't you add SRV records?

pingu_penguin 08-26-2021 12:14 PM

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 ?

Jump4fun 08-27-2021 12:03 PM

Quote:

Originally Posted by TenTenths (Post 6278706)
Why can't you add SRV records?

My DNS host doesn't allow SRV records.



Quote:

Originally Posted by pingu_penguin (Post 6278820)
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

pingu_penguin 08-27-2021 12:25 PM

I am not advertising or promoting , but maybe you can use something like no-ip.info for your purposes ? Maybe pay a little too, upto you.

TenTenths 08-27-2021 01:13 PM

Quote:

Originally Posted by Jump4fun (Post 6279073)
My DNS host doesn't allow SRV records.

Get a better DNS provider, they aren't expensive.


All times are GMT -5. The time now is 03:35 PM.