diff --git a/docs/en-us/2.0.0-compatibility.md b/docs/en-us/2.0.0-compatibility.md index f720a726a3f..c3b4498fa78 100644 --- a/docs/en-us/2.0.0-compatibility.md +++ b/docs/en-us/2.0.0-compatibility.md @@ -25,6 +25,8 @@ Compared with 1.X, Nacos2.0 adds gRPC communication mode, so there are 2 ports n |9848|1000|The client gRPC requests the server port, which is used by the client to initiate a connection and request to the server| |9849|1001|Server-side gRPC requests server-side port, used for synchronization between services, etc.| +![nacos2_port_exposure.png](/img/nacos2_port_exposure.png) + The client has the same offset logic. The users configures the main port (default 8848) as in the use of 1.X, and calculates the corresponding gRPC port (default 9848) through the same offset. Therefore, if there is a port forwarding or firewall between the client and the server, the port forwarding configuration and firewall configuration need to be adjusted accordingly. diff --git a/docs/zh-cn/2.0.0-compatibility.md b/docs/zh-cn/2.0.0-compatibility.md index f04d1b77373..679690e6cff 100644 --- a/docs/zh-cn/2.0.0-compatibility.md +++ b/docs/zh-cn/2.0.0-compatibility.md @@ -25,6 +25,8 @@ Nacos2.0版本相比1.X新增了gRPC的通信方式,因此需要增加2个端 |9848|1000|客户端gRPC请求服务端端口,用于客户端向服务端发起连接和请求| |9849|1001|服务端gRPC请求服务端端口,用于服务间同步等| +![nacos2_port_exposure.png](/img/nacos2_port_exposure.png) + 客户端拥有相同的计算逻辑,用户如同1.X的使用方式,配置主端口(默认8848),通过相同的偏移量,计算对应gRPC端口(默认9848)。 因此如果客户端和服务端之前存在端口转发,或防火墙时,需要对端口转发配置和防火墙配置做相应的调整。 diff --git a/img/nacos2_port_exposure.png b/img/nacos2_port_exposure.png new file mode 100644 index 00000000000..27b84a3a66f Binary files /dev/null and b/img/nacos2_port_exposure.png differ