inetAddress 可以与 inet6/IPv6 一起使用吗?
最佳答案
是的。
使用方法InetAddress.getByName( String name)例如。
来自文档:
For host specified in literal IPv6 address, either the form defined in RFC 2732 or the literal IPv6 address format defined in RFC 2373 is accepted. IPv6 scoped addresses are also supported.
参见 doc了解更多详情。
关于java - inetAddress 可以与 inet6/IPv6 一起使用吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1602452/