Class EndpointAddress

java.lang.Object
org.cloudburstmc.netty.util.nethernet.EndpointAddress

public final class EndpointAddress extends Object
Numeric endpoint parsing and classification, shared by the signaling paths. No DNS or reachability claims.
  • Method Details

    • parse

      public static InetAddress parse(String value) throws UnknownHostException
      Reads an IP literal, never a name, so that no lookup can block or leave the host.
      Throws:
      UnknownHostException
    • parseEndpoint

      public static InetSocketAddress parseEndpoint(String value)
      Reads IPv4:port or [IPv6]:port, or a bare IP literal, bracketed or not, as port 0. Never a name.
      Throws:
      IllegalArgumentException - If the value is none of those
    • scope

      public static EndpointAddress.Scope scope(InetAddress address)
      Where an address sits, per the IANA special-purpose registries reviewed 2026-09-07.
    • advertisable

      public static boolean advertisable(InetAddress address, boolean localDevelopment)
      Whether an address is worth publishing. A private, carrier grade NAT or unique local address is, since a peer on the same network or overlay reaches it; loopback only behind a proxy.