Jump to content

Port Forwarding Question?

panther420

Hi all,

 

Quick port forwarding question: If I have two servers for the same game, let's say Minecraft, that use the same port, can I port forward those two succesfully in the same machine and if so how can I distinguish between the two servers when connecting? To be more specific, at some point, I'd like to host a different modpack than the one I currently have running, but I'd like to keep them both up for a while. Can the first use a different port or something? What if, hypothetically, the game I was trying to run didn't support changing a port? How would it work then?

 

Thanks in advance!

Spoiler

My main desktop, "Rufus":

Spoiler

PC Specs:

CPU: AMD Ryzen 5 1600

CPU Cooler: Cooler Master MasterLiquid Lite 120

RAM: 2x8gb Corsair Vengence DDR4 Red LED @ 3066mt/s

Motherboard: MSI B350 Gaming Pro Carbon

GPU: XFX RX 580 GTR XXX White 

Storage: Mushkin ECO3 256GB SATA3 SSD + Some hitachi thing

PSU: Seasonic Focus Plus Gold 650W

Case: Corsair Crystal 460X

OS: Windows 10 x64 Pro Version 1607

Retro machine:

Spoiler

PC Specs:

CPU: Intel Core 2 Quad Q9550

CPU Cooler: Stock heatsink

RAM: GSkill 4gb DDR2 1066mt/s

Motherboard: Asus P5n-e SLI

GPU: 8800 GTS 640mb, I swap between that and my 8800 GTS 512mb

Storage: Seagate 320gb right from 2006

PSU: Ultra 600W 

Case: Deepcool Tesseract SW

OS: Windows XP SP3 32-bit, Linux Mint 18.2 Cinnamon 64-bit, Manjaro Deepin x64 (sorta)

Mac Pro Early 2008: Dual Xeon X5482s w/ 32GB RAM & HD 5770 running macOS High Sierra

More PC's

 

Link to comment
Share on other sites

Link to post
Share on other sites

They both have to have a different port externally. You can remap what port this goes to on a server.

 

If a game doesn't support changing a port you can only host one per public ip you have. So you need anouther ip(normally an extra 10 to 20 dollars a month from your isp.)

Link to comment
Share on other sites

Link to post
Share on other sites

Behind a single NAT, there can be only 1 application occupying a port at any time.  

 

If its not possible to change the port of an application that you want to run 2 instances (or ips) of, then you have to create another NAT behind that NAT.

 

An example of that would be like:

 

Modem <- Router 1

 

Router 1 <- server 1 and router 2

 

Router 2 <- server 2.

 

Sercer 1 and 2 contain application where ports cannot be changed.

Link to comment
Share on other sites

Link to post
Share on other sites

Everything said above is 100% true, I just want to add a few things. If you don't want your users to have to type in a port number in order to connect to the second (third, etc) minecraft server on the same external IP, you can buy a domain name and set up SRV records to encode both the IP and the port. Not all programs support this, very old versions of Minecraft didn't (before 1.3). For more information see this page or search for "Minecraft SRV" https://www.noip.com/support/knowledgebase/how-to-add-a-srv-record-to-your-minecraft-server-remove-the-port-on-the-end-of-the-url/

If you need a domain name, I recommend NameCheap, but that's just a personal choice.

Looking to buy GTX690, other multi-GPU cards, or single-slot graphics cards: 

 

Link to comment
Share on other sites

Link to post
Share on other sites

You'd need to change the port on one of them.

it's really easy if you're running minecraft. just open server.properties with notepad, and change the server-port field to say "server-port=12345" or any other port of your choice, instead of the usual "server-port=25565"

QUOTE/TAG ME WHEN REPLYING

Spend As Much Time Writing Your Question As You Want Me To Spend Responding To It.

If I'm wrong, please point it out. I'm always learning & I won't bite.

 

Desktop:

Delidded Core i7 4770K - GTX 1070 ROG Strix - 16GB DDR3 - Lots of RGB lights I never change

Laptop:

HP Spectre X360 - i7 8560U - MX150 - 2TB SSD - 16GB DDR4

Link to comment
Share on other sites

Link to post
Share on other sites

Thanks a bunch everyone! I appreciate the suggestions. I'll probably end up just editing server.properties and changing the port, which I would have done anyway, but I'm glad I now know how it would work for other applications.

 

Spoiler

My main desktop, "Rufus":

Spoiler

PC Specs:

CPU: AMD Ryzen 5 1600

CPU Cooler: Cooler Master MasterLiquid Lite 120

RAM: 2x8gb Corsair Vengence DDR4 Red LED @ 3066mt/s

Motherboard: MSI B350 Gaming Pro Carbon

GPU: XFX RX 580 GTR XXX White 

Storage: Mushkin ECO3 256GB SATA3 SSD + Some hitachi thing

PSU: Seasonic Focus Plus Gold 650W

Case: Corsair Crystal 460X

OS: Windows 10 x64 Pro Version 1607

Retro machine:

Spoiler

PC Specs:

CPU: Intel Core 2 Quad Q9550

CPU Cooler: Stock heatsink

RAM: GSkill 4gb DDR2 1066mt/s

Motherboard: Asus P5n-e SLI

GPU: 8800 GTS 640mb, I swap between that and my 8800 GTS 512mb

Storage: Seagate 320gb right from 2006

PSU: Ultra 600W 

Case: Deepcool Tesseract SW

OS: Windows XP SP3 32-bit, Linux Mint 18.2 Cinnamon 64-bit, Manjaro Deepin x64 (sorta)

Mac Pro Early 2008: Dual Xeon X5482s w/ 32GB RAM & HD 5770 running macOS High Sierra

More PC's

 

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×