Uses of Class java.net.InetSocketAddress (Java Platform SE 8 )
Date: 2026-03-29

## Uses of Class
java.net.InetSocketAddress

- Packages that use InetSocketAddress
  Package | Description
  --- | ---
  java.net | Provides the classes for implementing networking applications.
  javax.xml.ws.spi.http | Provides HTTP SPI that is used for portable deployment of JAX-WS web services in containers(for e.g.

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

    Methods in java.net that return InetSocketAddress
    Modifier and Type | Method and Description
    --- | ---
    `static InetSocketAddress` | InetSocketAddress.`createUnresolved(String host, int port)` Creates an unresolved socket address from a hostname and a port number.

  - ### Uses of InetSocketAddress in javax.xml.ws.spi.http

    Methods in javax.xml.ws.spi.http that return InetSocketAddress
    Modifier and Type | Method and Description
    --- | ---
    `abstract InetSocketAddress` | HttpExchange.`getLocalAddress()` Returns the unresolved local address on which the request was received.
    `abstract InetSocketAddress` | HttpExchange.`getRemoteAddress()` Returns the unresolved address of the remote entity invoking this request.

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.