Using ServerSocket instead of Socket.