Methods Description accept() Waits for a connection request and returns a Socket getInetAddress() Returns the local address of this server Socket Int getLocalPort() Returns the port number on which this socket is listening close() Stops waiting for requests from clients
Methods Description getInetAddress() Returns IP address to which socket are connected. getLocalAddress() Returns local address to which socket are connected. getInputStream() Returns an InputStream for receiving data. getOutputStream() Returns an OutputStream to send data. close() Closes the socket connection.