This repository was archived by the owner on Jul 16, 2024. It is now read-only.
关于外网的服务通过路由器端口映射访问Rsocket-Broker的错误提示 #242
Unanswered
YJChen8688
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
102.203.22.10(机房外网ip)---》路由器(端口映射了9999等)--》实体机(ip192.168.0.10、192.168.0.11等);
有两个服务模块(A、B),都是直连接到Rsocket-broker。
A服务与Rsocket-broker处于同一局域网内,
B服务处于外网,与Rsocket-broker不在一个局域网;
当B服务通过102.203.22.10连接Rsocket-Broker,能连接,也能正常与A服务相互调用,但会提示以下错误:
2023-11-19 09:12:00.953 ERROR 27708 --- [actor-tcp-nio-2] c.a.r.loadbalance.LoadBalancedRSocket : RST-400500: Failed to connect URI: tcp://192.168.0.10:9999
io.netty.channel.AbstractChannel$AnnotatedConnectException: Connection timed out: no further information: /192.168.0.10:9999
Caused by: java.net.ConnectException: Connection timed out: no further information
at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method) ~[na:1.8.0_211]
at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717) ~[na:1.8.0_211]
at io.netty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:337) ~[netty-transport-4.1.91.Final.jar:4.1.91.Final]
at io.netty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334) ~[netty-transport-4.1.91.Final.jar:4.1.91.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:776) ~[netty-transport-4.1.91.Final.jar:4.1.91.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:724) ~[netty-transport-4.1.91.Final.jar:4.1.91.Final]
at io.netty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:650) ~[netty-transport-4.1.91.Final.jar:4.1.91.Final]
at io.netty.channel.nio.NioEventLoop.run(NioEventLoop.java:562) ~[netty-transport-4.1.91.Final.jar:4.1.91.Final]
at io.netty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:997) ~[netty-common-4.1.91.Final.jar:4.1.91.Final]
at io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74) ~[netty-common-4.1.91.Final.jar:4.1.91.Final]
at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30) ~[netty-common-4.1.91.Final.jar:4.1.91.Final]
at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_211]
2023-11-19 09:12:00.962 ERROR 27708 --- [actor-tcp-nio-2] reactor.core.publisher.Operators : Operator called default onErrorDropped
而与Rsocket-Broker处于同一局域网的A服务不会有这个错误提示,请教如何解决这个问题。
Beta Was this translation helpful? Give feedback.
All reactions