Uses of Class java.net.Inet6Address (Java Platform SE 8 )
Date: 2026-01-21

## Uses of Class
java.net.Inet6Address

- Packages that use Inet6Address
  Package | Description
  --- | ---
  java.net | Provides the classes for implementing networking applications.

- - ### Uses of Inet6Address in java.net

    Methods in java.net that return Inet6Address
    Modifier and Type | Method and Description
    --- | ---
    `static Inet6Address` | Inet6Address.`getByAddress(String host, byte[] addr, int scope_id)` Create an Inet6Address in the exact manner of `InetAddress.getByAddress(String,byte[])` except that the IPv6 scope_id is set to the given numeric value.
    `static Inet6Address` | Inet6Address.`getByAddress(String host, byte[] addr, NetworkInterface nif)` Create an Inet6Address in the exact manner of `InetAddress.getByAddress(String,byte[])` except that the IPv6 scope_id is set to the value corresponding to the given interface for the address type specified in `addr`.

Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.