luozongle01 opened a new issue, #8865: URL: https://github.com/apache/rocketmq/issues/8865
### Before Creating the Bug Report - [X] I found a bug, not just asking a question, which should be created in [GitHub Discussions](https://github.com/apache/rocketmq/discussions). - [X] I have searched the [GitHub Issues](https://github.com/apache/rocketmq/issues) and [GitHub Discussions](https://github.com/apache/rocketmq/discussions) of this repository and believe that this is not a duplicate. - [X] I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ. ### Runtime platform environment CentOS Stream 9 ### RocketMQ version 5.3.1 ### JDK Version jdk8 ### Describe the Bug In local proxy mode, if the grpcServerPort of different brokers is different, the wrong port number will be returned. <img width="1204" alt="image" src="https://github.com/user-attachments/assets/bbd1852b-dba2-4e02-b805-9f6e973f6507"> ### Steps to Reproduce If there are two broker masters deployed on different machines, and their grpcServerPort is different, for example, broker-a is 8081 and broker-b is 8181, then the wrong address may be obtained when obtaining routing information. If the request is sent to broker-b, the obtained messageQueue endpoints may be brokerAIp:8181. Or another possibility is that if broker-a_master and broker-a_slave are deployed on the same machine, their grpcServerPort will also be set to different ones, and it is also possible to obtain wrong port information. ### What Did You Expect to See? The correct port information should be obtained. ### What Did You See Instead? Proxy Local mode may return an incorrect localPornyPort. ### Additional Context _No response_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@rocketmq.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org