问题原文
原帖链接 · Bartek Szablowski · CC BY-SA 3.0
My question is simple.
Is it possible to run TWO different game servers using exact same port but on different IP's using same network interface on the same server ?
Does each IP adress have it's own port pool or is it limited to machine's network interface ?
已采纳解答
原帖链接 · Heis Spiter · CC BY-SA 3.0
It is possible. You just have to bind on the right IP address/interface each service using the same port.
Ports (be them UDP or TCP) have their own pool per IP address.
You can listen on the same port if you change: IP address or protocol (UDP or TCP).
See: http://www.bleepingcomputer.com/tutorials/tcp-and-udp-ports-explained/
摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。
