Uses of Class
java.net.InetAddress
-
Packages that use InetAddress Package Description com.sun.nio.sctp A Java API for Stream Control Transport Protocol.java.lang Provides classes that are fundamental to the design of the Java programming language.java.net Provides the classes for implementing networking applications.java.nio.channels Defines channels, which represent connections to entities that are capable of performing I/O operations, such as files and sockets; defines selectors, for multiplexed, non-blocking I/O operations.javax.net Provides classes for networking applications.javax.net.ssl Provides classes for the secure socket package.javax.security.auth.kerberos This package contains utility classes related to the Kerberos network authentication protocol.org.ietf.jgss This package presents a framework that allows application developers to make use of security services like authentication, data integrity and data confidentiality from a variety of underlying security mechanisms like Kerberos, using a unified API. -
-
Uses of InetAddress in com.sun.nio.sctp
Methods in com.sun.nio.sctp with parameters of type InetAddress Modifier and Type Method Description abstract SctpChannelSctpChannel. bindAddress(InetAddress address)Adds the given address to the bound addresses for the channel's socket.abstract SctpMultiChannelSctpMultiChannel. bindAddress(InetAddress address)Adds the given address to the bound addresses for the channel's socket.abstract SctpServerChannelSctpServerChannel. bindAddress(InetAddress address)Adds the given address to the bound addresses for the channel's socket.abstract SctpChannelSctpChannel. unbindAddress(InetAddress address)Removes the given address from the bound addresses for the channel's socket.abstract SctpMultiChannelSctpMultiChannel. unbindAddress(InetAddress address)Removes the given address from the bound addresses for the channel's socket.abstract SctpServerChannelSctpServerChannel. unbindAddress(InetAddress address)Removes the given address from the bound addresses for the channel's socket. -
Uses of InetAddress in java.lang
Methods in java.lang with parameters of type InetAddress Modifier and Type Method Description voidSecurityManager. checkMulticast(InetAddress maddr)Throws aSecurityExceptionif the calling thread is not allowed to use (join/leave/send/receive) IP multicast.voidSecurityManager. checkMulticast(InetAddress maddr, byte ttl)Deprecated.Use #checkPermission(java.security.Permission) instead -
Uses of InetAddress in java.net
Subclasses of InetAddress in java.net Modifier and Type Class Description classInet4AddressThis class represents an Internet Protocol version 4 (IPv4) address.classInet6AddressThis class represents an Internet Protocol version 6 (IPv6) address.Fields in java.net declared as InetAddress Modifier and Type Field Description protected InetAddressSocketImpl. addressThe IP address of the remote end of this socket.Methods in java.net that return InetAddress Modifier and Type Method Description InetAddressDatagramPacket. getAddress()Returns the IP address of the machine to which this datagram is being sent or from which the datagram was received.InetAddressInetSocketAddress. getAddress()Gets theInetAddress.InetAddressInterfaceAddress. getAddress()Returns anInetAddressfor this address.static InetAddress[]InetAddress. getAllByName(String host)Given the name of a host, returns an array of its IP addresses, based on the configured name service on the system.InetAddressInterfaceAddress. getBroadcast()Returns anInetAddressfor the broadcast address for this InterfaceAddress.static InetAddressInetAddress. getByAddress(byte[] addr)Returns anInetAddressobject given the raw IP address .static InetAddressInetAddress. getByAddress(String host, byte[] addr)Creates an InetAddress based on the provided host name and IP address.static InetAddressInetAddress. getByName(String host)Determines the IP address of a host, given the host's name.protected InetAddressURLStreamHandler. getHostAddress(URL u)Get the IP address of our host.InetAddressDatagramSocket. getInetAddress()Returns the address to which this socket is connected.InetAddressServerSocket. getInetAddress()Returns the local address of this server socket.InetAddressSocket. getInetAddress()Returns the address to which the socket is connected.protected InetAddressSocketImpl. getInetAddress()Returns the value of this socket'saddressfield.InetAddressMulticastSocket. getInterface()Retrieve the address of the network interface used for multicast packets.InetAddressDatagramSocket. getLocalAddress()Gets the local address to which the socket is bound.InetAddressSocket. getLocalAddress()Gets the local address to which the socket is bound.static InetAddressInetAddress. getLocalHost()Returns the address of the local host.static InetAddressInetAddress. getLoopbackAddress()Returns the loopback address.protected InetAddressAuthenticator. getRequestingSite()Gets theInetAddressof the site requesting authorization, ornullif not available.Methods in java.net that return types with arguments of type InetAddress Modifier and Type Method Description Enumeration<InetAddress>NetworkInterface. getInetAddresses()Get an Enumeration with all or a subset of the InetAddresses bound to this network interface.Stream<InetAddress>NetworkInterface. inetAddresses()Get a Stream of all or a subset of the InetAddresses bound to this network interface.Methods in java.net with parameters of type InetAddress Modifier and Type Method Description protected abstract voidDatagramSocketImpl. bind(int lport, InetAddress laddr)Binds a datagram socket to a local port and address.protected abstract voidSocketImpl. bind(InetAddress host, int port)Binds this socket to the specified local IP address and port number.voidDatagramSocket. connect(InetAddress address, int port)Connects the socket to a remote address for this socket.protected voidDatagramSocketImpl. connect(InetAddress address, int port)Connects a datagram socket to a remote destination.protected abstract voidSocketImpl. connect(InetAddress address, int port)Connects this socket to the specified port number on the specified host.static NetworkInterfaceNetworkInterface. getByInetAddress(InetAddress addr)Convenience method to search for a network interface that has the specified Internet Protocol (IP) address bound to it.protected abstract voidDatagramSocketImpl. join(InetAddress inetaddr)Join the multicast group.voidMulticastSocket. joinGroup(InetAddress mcastaddr)Joins a multicast group.protected abstract voidDatagramSocketImpl. leave(InetAddress inetaddr)Leave the multicast group.voidMulticastSocket. leaveGroup(InetAddress mcastaddr)Leave a multicast group.protected abstract intDatagramSocketImpl. peek(InetAddress i)Peek at the packet to see who it is from.static PasswordAuthenticationAuthenticator. requestPasswordAuthentication(String host, InetAddress addr, int port, String protocol, String prompt, String scheme)Ask the authenticator that has been registered with the system for a password.static PasswordAuthenticationAuthenticator. requestPasswordAuthentication(String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, Authenticator.RequestorType reqType)Ask the authenticator that has been registered with the system for a password.static PasswordAuthenticationAuthenticator. requestPasswordAuthentication(Authenticator authenticator, String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, Authenticator.RequestorType reqType)Ask the givenauthenticatorfor a password.static PasswordAuthenticationAuthenticator. requestPasswordAuthentication(InetAddress addr, int port, String protocol, String prompt, String scheme)Ask the authenticator that has been registered with the system for a password.PasswordAuthenticationAuthenticator. requestPasswordAuthenticationInstance(String host, InetAddress addr, int port, String protocol, String prompt, String scheme, URL url, Authenticator.RequestorType reqType)Ask this authenticator for a password.voidDatagramPacket. setAddress(InetAddress iaddr)Sets the IP address of the machine to which this datagram is being sent.voidMulticastSocket. setInterface(InetAddress inf)Set the multicast network interface used by methods whose behavior would be affected by the value of the network interface.Constructors in java.net with parameters of type InetAddress Constructor Description DatagramPacket(byte[] buf, int offset, int length, InetAddress address, int port)Constructs a datagram packet for sending packets of lengthlengthwith offsetioffsetto the specified port number on the specified host.DatagramPacket(byte[] buf, int length, InetAddress address, int port)Constructs a datagram packet for sending packets of lengthlengthto the specified port number on the specified host.DatagramSocket(int port, InetAddress laddr)Creates a datagram socket, bound to the specified local address.InetSocketAddress(InetAddress addr, int port)Creates a socket address from an IP address and a port number.ServerSocket(int port, int backlog, InetAddress bindAddr)Create a server with the specified port, listen backlog, and local IP address to bind to.Socket(String host, int port, InetAddress localAddr, int localPort)Creates a socket and connects it to the specified remote host on the specified remote port.Socket(InetAddress address, int port)Creates a stream socket and connects it to the specified port number at the specified IP address.Socket(InetAddress host, int port, boolean stream)Deprecated.Use DatagramSocket instead for UDP transport.Socket(InetAddress address, int port, InetAddress localAddr, int localPort)Creates a socket and connects it to the specified remote address on the specified remote port. -
Uses of InetAddress in java.nio.channels
Methods in java.nio.channels that return InetAddress Modifier and Type Method Description abstract InetAddressMembershipKey. group()Returns the multicast group for which this membership key was created.abstract InetAddressMembershipKey. sourceAddress()Returns the source address if this membership key is source-specific, ornullif this membership is not source-specific.Methods in java.nio.channels with parameters of type InetAddress Modifier and Type Method Description abstract MembershipKeyMembershipKey. block(InetAddress source)Block multicast datagrams from the given source address.MembershipKeyMulticastChannel. join(InetAddress group, NetworkInterface interf)Joins a multicast group to begin receiving all datagrams sent to the group, returning a membership key.MembershipKeyMulticastChannel. join(InetAddress group, NetworkInterface interf, InetAddress source)Joins a multicast group to begin receiving datagrams sent to the group from a given source address.abstract MembershipKeyMembershipKey. unblock(InetAddress source)Unblock multicast datagrams from the given source address that was previously blocked using theblockmethod. -
Uses of InetAddress in javax.net
Methods in javax.net with parameters of type InetAddress Modifier and Type Method Description abstract ServerSocketServerSocketFactory. createServerSocket(int port, int backlog, InetAddress ifAddress)Returns a server socket bound to the specified port, with a specified listen backlog and local IP.abstract SocketSocketFactory. createSocket(String host, int port, InetAddress localHost, int localPort)Creates a socket and connects it to the specified remote host on the specified remote port.abstract SocketSocketFactory. createSocket(InetAddress host, int port)Creates a socket and connects it to the specified port number at the specified address.abstract SocketSocketFactory. createSocket(InetAddress address, int port, InetAddress localAddress, int localPort)Creates a socket and connect it to the specified remote address on the specified remote port. -
Uses of InetAddress in javax.net.ssl
Constructors in javax.net.ssl with parameters of type InetAddress Constructor Description SSLServerSocket(int port, int backlog, InetAddress address)Used only by subclasses.SSLSocket(String host, int port, InetAddress clientAddress, int clientPort)Used only by subclasses.SSLSocket(InetAddress address, int port)Used only by subclasses.SSLSocket(InetAddress address, int port, InetAddress clientAddress, int clientPort)Used only by subclasses. -
Uses of InetAddress in javax.security.auth.kerberos
Methods in javax.security.auth.kerberos that return InetAddress Modifier and Type Method Description InetAddress[]KerberosTicket. getClientAddresses()Returns a list of addresses from where the ticket can be used.Constructors in javax.security.auth.kerberos with parameters of type InetAddress Constructor Description KerberosTicket(byte[] asn1Encoding, KerberosPrincipal client, KerberosPrincipal server, byte[] sessionKey, int keyType, boolean[] flags, Date authTime, Date startTime, Date endTime, Date renewTill, InetAddress[] clientAddresses)Constructs aKerberosTicketusing credentials information that a client either receives from a KDC or reads from a cache. -
Uses of InetAddress in org.ietf.jgss
Methods in org.ietf.jgss that return InetAddress Modifier and Type Method Description InetAddressChannelBinding. getAcceptorAddress()Get the acceptor's address for this channel binding.InetAddressChannelBinding. getInitiatorAddress()Get the initiator's address for this channel binding.Constructors in org.ietf.jgss with parameters of type InetAddress Constructor Description ChannelBinding(InetAddress initAddr, InetAddress acceptAddr, byte[] appData)Create a ChannelBinding object with user supplied address information and data.
-