How to make a srever to allow the connection to the socket 6123?
Solution:
Following example shows how to make a srever to allow the connection to the socket 6123 by using server.accept() method of ServerSocket class andb sock.getInetAddress() method of Socket class.