Can inetAddress be used with inet6/IPv6?
+2
A:
Yes.
Using the method InetAddress.getByName( String name) for instance.
From the doc:
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.
See the doc for more details.
OscarRyz
2009-10-21 17:57:50
There is a typo I think: Should it not be InetAddress.getByName instead of InterAddress.getByName ?
Kushal Paudyal
2009-11-23 19:42:46