大网数据广告活动
服务器运维问答

Is it possible to run two services on the same ports with different IP but on the same machine?

· 52CE 我爱测

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…

问题原文

原帖链接 · 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/

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2013-05-16)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。