Question: what is ioexception in socket?
Answer: public Socket(String host, int port, InetAddress localAddr, int localPort) throws IOException. Creates a socket and connects it to the specified remote host on the specified remote port. The Socket will also bind() to the local address and port supplied.