Networking Hardware-Other
--
Questions
--
Followers
Top Experts
Zero AI Policy
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
How are you expecting your router to know which device should get the incoming packet? I don't think that most (any?) routers will duplicate the packet for you.
You'll need to have different incoming port numbers for the different computers.
You may be able to use SNI if the TCP connections are TLS based. use a tool like HAproxy configured for this.
Otherwise if the packets have some other host indication like in HTTP then you can use the Host: header to forward. traffic.
Again HAproxy can be your friend. For other protocols you may need to build a proxy yourself.
otherwise you have to assign each of the servers a unique port and use that.






EARN REWARDS FOR ASKING, ANSWERING, AND MORE.
Earn free swag for participating on the platform.
In that case you have no real solution. to connect a single port to various systems behind it, there must be a way to identify those backend systems.
In your case the solution is it to have different external IPs for each internal device.
So incoming port 34001 from WAN1 forwards to internal PC1
And incoming port 34001 from WAN2 forwards to PC2.
Load-balancing and failover is a whole other structure.

Get a FREE t-shirt when you ask your first question.
We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.
This is a common problem when forwarding ports to two different internal devices with the same port numbers. The best solution is to assign different internal port numbers for each computer.
For example, you can assign port 34001 to one computer, and port 34002 to the other computer. Then, you can set up the port forwarding rules in your router with the external port being 34001 and the internal port being 34001 for the first computer, and the same with port 34002 for the second computer. This way, both computers can have the same external port number, but different internal port numbers, which will be forwarded to the correct internal device.
Cheers
Networking Hardware-Other
--
Questions
--
Followers
Top Experts
Networking hardware includes the physical devices facilitating the use of a computer network. Typically, networking hardware includes gateways, routers, network bridges, modems, wireless access points, networking cables, line drivers, switches, hubs, and repeaters. But it also includes hybrid network devices such as multilayer switches, protocol converters, bridge routers, proxy servers, firewalls, network address translators, multiplexers, network interface controllers, wireless network interface controllers, ISDN terminal adapters and other related hardware.
Create your account and start contributing!