Uses of Class java.net.InetAddress

Uses in package java.lang

Methods with parameter type java.net.InetAddress

void
Check if the current thread is allowed to read and write multicast to a particular address.
void
Check if the current thread is allowed to read and write multicast to a particular address with a particular ttl (time-to-live) value.

Uses in package javax.net.ssl

Constructors with parameter type java.net.InetAddress

SSLServerSocket.SSLServerSocket(int port, int backlog, InetAddress bindAddress)
SSLSocket.SSLSocket(String host, int port, InetAddress localAddr, int localPort)
SSLSocket.SSLSocket(InetAddress address, int port)
SSLSocket.SSLSocket(InetAddress address, int port, InetAddress localAddr, int localPort)

Uses in package java.net

Classes derived from java.net.InetAddress

class
class

Constructors with parameter type java.net.InetAddress

DatagramPacket.DatagramPacket(byte[] buf, int offset, int length, InetAddress address, int port)
Initializes a new instance of DatagramPacket for transmitting packets across the network.
DatagramPacket.DatagramPacket(byte[] buf, int length, InetAddress address, int port)
Initializes a new instance of DatagramPacket for transmitting packets across the network.
Initializes a new instance of DatagramSocket that binds to the specified local port and address.
Constructs an InetSocketAddress instance.
ServerSocket.ServerSocket(int port, int backlog, InetAddress bindAddr)
Creates a server socket and binds it to the specified port.
Socket.Socket(String host, int port, InetAddress localAddr, int localPort)
Initializes a new instance of Socket that connects to the named host on the specified port and binds to the specified local address and port.
Socket.Socket(InetAddress address, int port)
Initializes a new instance of Socket and connects to the address and port number specified as arguments.
Socket.Socket(InetAddress host, int port, boolean stream)
Initializes a new instance of Socket and connects to the address and port number specified as arguments.
Socket.Socket(InetAddress address, int port, InetAddress localAddr, int localPort)
Initializes a new instance of Socket and connects to the address and port number specified as arguments, plus binds to the specified local address and port.

Fields of type java.net.InetAddress

InetAddress
The address of the remote end of the socket connection

Methods with parameter type java.net.InetAddress

void
DatagramSocketImpl.bind(int lport, InetAddress laddr)
This method binds the socket to the specified local port and address.
void
SocketImpl.bind(InetAddress host, int port)
Binds to the specified port on the specified addr.
void
DatagramSocket.connect(InetAddress address, int port)
This method connects this socket to the specified address and port.
void
Connects the socket to a host specified by address and port.
void
SocketImpl.connect(InetAddress host, int port)
Connects to the remote address and port specified as arguments.
NetworkInterface
Return a network interface by its address
void
Causes this socket to join the specified multicast group
void
Joins the specified multicast group.
void
Causes the socket to leave the specified multicast group.
void
Leaves the specified multicast group
int
Takes a peek at the next packet received in order to retrieve the address of the sender
PasswordAuthentication
Authenticator.requestPasswordAuthentication(String host, InetAddress addr, int port, String protocol, String prompt, String scheme)
This method is called whenever a username and password for a given network operation is required.
PasswordAuthentication
Authenticator.requestPasswordAuthentication(InetAddress addr, int port, String protocol, String prompt, String scheme)
This method is called whenever a username and password for a given network operation is required.
void
This sets the address to which the data packet will be transmitted.
void
Sets the interface to use for sending multicast packets.

Methods with return type java.net.InetAddress

InetAddress
Returns the address that this packet is being sent to or, if it was used to receive a packet, the address that is was received from.
InetAddress
Returns the InetAddress or null if its unresolved
InetAddress[]
Returns an array of InetAddress objects representing all the host/ip addresses of a given host, given the host's name.
InetAddress
Returns an InetAddress object given the raw IP address.
InetAddress
InetAddress.getByAddress(String host, byte[] addr)
Creates an InetAddress based on the provided host name and IP address.
InetAddress
Returns an InetAddress object representing the IP address of the given hostname.
InetAddress
Get the IP address of our host.
InetAddress
This method returns the remote address to which this socket is connected.
InetAddress
This method returns the local address to which this socket is bound
InetAddress
Returns the address of the remote end of the socket.
InetAddress
Returns the remote address this socket is connected to
InetAddress
Returns the interface being used for multicast packets
InetAddress
Returns the local address this datagram socket is bound to.
InetAddress
Returns the local address to which this socket is bound.
InetAddress
Returns an InetAddress object representing the address of the current host.
InetAddress
This method returns the address of the site that is requesting authentication.

Uses in package javax.net

Methods with parameter type java.net.InetAddress

ServerSocket
ServerSocketFactory.createServerSocket(int port, int backlog, InetAddress bindAddress)
Socket
SocketFactory.createSocket(String host, int port, InetAddress localHost, int localPort)
Creates a socket connected to a given host on a given port, connecting locally to the interface with the given address and port.
Socket
Creates a socket connected to a given host on a given port.
Socket
SocketFactory.createSocket(InetAddress hast, int port, InetAddress localHost, int localPort)
Creates a socket connected to a given host on a given port, connecting locally to the interface with the given address and port.

Uses in package org.ietf.jgss

Constructors with parameter type java.net.InetAddress

ChannelBinding.ChannelBinding(InetAddress initAddr, InetAddress acceptAddr, byte[] appData)
Create a ChannelBinding object with user supplied address information and data.

Methods with return type java.net.InetAddress

InetAddress
Returns the acceptor's address for this channel binding.
InetAddress
Returns the initiator's address for this channel binding.

Uses in package javax.security.auth.kerberos

Constructors with parameter type java.net.InetAddress

KerberosTicket.KerberosTicket(byte[] asn1Encoding, KerberosPrincipal client, KerberosPrincipal server, byte[] key, int type, boolean[] flags, Date authTime, Date startTime, Date endTime, Date renewTill, InetAddress[] clientAddresses)
Create a new ticket given all the facts about it.

Methods with return type java.net.InetAddress

InetAddress[]
Return the allowable client addresses for this ticket.