Question Port-Forwarding to multiple IPs (without proxies) ?

Gamefreaknet

Reputable
Mar 29, 2022
354
15
4,685
In the case of a motherboard with a single Ethernet Port could that port be split in without using a Proxy?
After all its basically: (For a Game server, Minecraft as the example)
- Make PC IPV4 address visible on (typically port number: 25565 or 25566) - with some form of authentication ofcourse so not just anyone can connect (on Minecraft through a whitelist)
- Broadcast IP so other networks can see and connect to (IP Number or IP Number:25566 - since Minecraft normally will default to 25565)
- Player packets sent to IP

However assume a server PC hosting 2 different Minecraft servers (you can set a "set IP" in a server.properties configuration file).
Assume Server 1 is set to receive packets from IP 1 and Server 2 is set to receive packets from IP 2.
A lot of routers support having multiple port-forwarding rules. So if a Packet with IP 2 is sent from a player wouldnt the PC Ethernet Port know to send that Packet to Server 2 since the it wouldnt make sense to try send that Packet to Server 1 since the IPs are different but Server 2 has the correct reference IP the Packet is "looking for/to be sent to" ?


Also is the limitation from the amount of ports on the Motherboard IO (aka. separate ports for separate port-forwarding rules) or just the general availability of Ethernet Ports to the PC (aka. devices that add Ethernet capability to Motherboards that dont have Ethernet [such as USB -> Ethernet Adapters] ) can act as a Port to be used for Port-forwarding?
 
I have not set up a minecraft server so I don't know its limitations.

Lets say you had 2 physical servers in your house. Lets say your public ip is x.x.x.x. The two servers would appear as x.x.x.x😛ort-y and x.x.x.x😛ort-z

If the port forward rules were setup properly it could forward to 2 different pc.

There is no way to use the same port say 25565 and forward it to 2 different internal machine. You only have 1 public ip and one set of ports and each combination is unique.

Can you not just set the 2 different server instances to run on the same IP but different ports. In a way this is what you router is making it appear as if the server was directly connected.

There is the ability to set a secondary ip on the network interface. Its been a while since I did it, i normally would be setting a completely different network.

Worst case you likely could setup some kind of VM but I have never done that under a non server version of windows.