LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-22-2021, 11:43 PM   #1
Jump4fun
LQ Newbie
 
Registered: Aug 2021
Posts: 3

Rep: Reputation: Disabled
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
 
Old 08-23-2021, 04:04 PM   #2
jmgibson1981
Senior Member
 
Registered: Jun 2015
Location: Tucson, AZ USA
Distribution: Debian
Posts: 1,141

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
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.
 
Old 08-24-2021, 05:41 AM   #3
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by jmgibson1981 View Post
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/
 
Old 08-26-2021, 02:38 AM   #4
Jump4fun
LQ Newbie
 
Registered: Aug 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
Is there a way to do that without SRV Records? I'm Unable to add SRV records to my DNS records.
 
Old 08-26-2021, 02:44 AM   #5
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by Jump4fun View Post
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?
 
Old 08-26-2021, 12:14 PM   #6
pingu_penguin
Member
 
Registered: Aug 2004
Location: pune
Distribution: Slackware
Posts: 350

Rep: Reputation: 60
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 ?
 
Old 08-27-2021, 12:03 PM   #7
Jump4fun
LQ Newbie
 
Registered: Aug 2021
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TenTenths View Post
Why can't you add SRV records?
My DNS host doesn't allow SRV records.



Quote:
Originally Posted by pingu_penguin View Post
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
 
Old 08-27-2021, 12:25 PM   #8
pingu_penguin
Member
 
Registered: Aug 2004
Location: pune
Distribution: Slackware
Posts: 350

Rep: Reputation: 60
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.
 
Old 08-27-2021, 01:13 PM   #9
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,475

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
Quote:
Originally Posted by Jump4fun View Post
My DNS host doesn't allow SRV records.
Get a better DNS provider, they aren't expensive.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Encrypting One TCP Port and only One TCP Port? mpapet Linux - Networking 5 08-22-2017 02:20 PM
LXer: Minecraft NFC -- How one man took Minecraft to the next level LXer Syndicated Linux News 0 02-21-2016 05:53 AM
Minecraft world trickery (and even minecraft on ipad) lhartvik LinuxQuestions.org Member Success Stories 2 05-28-2015 01:32 AM
LXer: GOL MineCraft Weekly. Grab Issue 2 Today, Linux Minecraft server LXer Syndicated Linux News 0 08-04-2013 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration