【Netty4】UDP Client报错:bind error : Cannot assign requested address
我遇到此错误其实很简单,只是在写的过程中,被TCP接口误导导致。与开放端口等并无关系。EventLoopGroup group = new NioEventLoopGroup();try { Bootstrap b = new Bootstrap(); b.group(group).channel(NioDatagramChannel.class) .handler(new UdpClientHandler(contextMsg, commonClientHand
原创
2020-11-02 14:55:12 ·
3639 阅读 ·
0 评论