Did you use ManagedChannelBuilder.forTarget() ? According to the doc <https://grpc.github.io/grpc-java/javadoc/io/grpc/ManagedChannelBuilder.html#forTarget-java.lang.String->, something like "[2001:db8:85a3:8d3:1319:8a2e:370:7348]:443" should have worked - which is what you are using. Unless you are using a different API. Also can you try with one of the suggested formats e.g. "dns:///%5B2001:db8:85a3:8d3:1319:8a2e:370:7348%5D:443"
On Friday, January 20, 2023 at 3:32:35 PM UTC-8 liuji...@gmail.com wrote: > Hi everyone, > > I have an ipv6 server with address [202:a01:310:234:b01:34a:41a:33e]:9999. > > I tried to make Java client connect to it by passing the string form of > the above address, but got error: > io.grpc.netty.shaded.io > <https://www.google.com/url?sa=D&q=http%3A%2F%2Fio.grpc.netty.shaded.io>.netty.channel.AbstractChannel$AnnotatedConnectException: > > connect(..) failed: Invalid argument: /202:a01:310:234:b01:34a:41a:33e:9999 > Not use why the format changes... > > I also tried another format such as > %5B202:a01:310:234:b01:34a:41a:33e%5D:9999, > but got error again: > java.net.URISyntaxException: Malformed IPv6 address at index 3: > //[%5B202:a01:310:234:b01:34a:41a:33e%5D]:9999 > > The versions is 1.52.1 for io.grpc. > > How can I resolve the problem? > > Thanks! > > > -- You received this message because you are subscribed to the Google Groups "grpc.io" group. To unsubscribe from this group and stop receiving emails from it, send an email to grpc-io+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/grpc-io/e7e5c820-d096-4b71-8b61-af94c090c7ecn%40googlegroups.com.