接続先のPC

codex app-server --listen ws://127.0.0.1:4500

CLIを使うPC

codex --remote ws://127.0.0.1:4500