code: @Override
      public void connect(String ip, int port)
      {
          Check.notNull(ip);
          Check.superiorOrEqual(port, 0);
          Check.inferiorOrEqual(port, Constant.MAX_PORT);
  
          try
          {
              socket = new Socket(InetAddress.getByName(ip), port);
              out = new ObjectOutputStream(socket.getOutputStream());
              in = new ObjectInputStream(socket.getInputStream());
              connected = true;
              clientId = -1;
              pingRequestTimer.start();
              bandwidthTimer.start();
          }
          catch (final IOException exception)
          {
              throw new LionEngineException(exception, "Cannot connect to the server !");
          }
      }
docs: /*
  Client