admin管理员组

文章数量:1608599

 

netty初学

Exception in thread "main" ioty.channel.AbstractChannel$AnnotatedConnectException: Connection refused: no further information: /127.0.0.1:801
Caused by: java.ConnectException: Connection refused: no further information
	at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
	at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:717)
	at ioty.channel.socket.nio.NioSocketChannel.doFinishConnect(NioSocketChannel.java:330)
	at ioty.channel.nio.AbstractNioChannel$AbstractNioUnsafe.finishConnect(AbstractNioChannel.java:334)
	at ioty.channel.nio.NioEventLoop.processSelectedKey(NioEventLoop.java:707)
	at ioty.channel.nio.NioEventLoop.processSelectedKeysOptimized(NioEventLoop.java:655)
	at ioty.channel.nio.NioEventLoop.processSelectedKeys(NioEventLoop.java:581)
	at ioty.channel.nio.NioEventLoop.run(NioEventLoop.java:493)
	at ioty.util.concurrent.SingleThreadEventExecutor$4.run(SingleThreadEventExecutor.java:989)
	at ioty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
	at ioty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
	at java.lang.Thread.run(Thread.java:745)

 

原因:端口不一致,客户端无法访问服务端

解决方法:把客户端的端口改成服务端的端口 

本文标签: informationrefusedConnection