public void tcpSend() throws Exception
    {
        String sentence;
        String modifiedSentence;

        while(true)
        {
            Socket clientSocket = new Socket("localhost", mPort);
            System.out.println("What do you want to send to the server");
            DataOutputStream outToServer = new DataOutputStream(clientSocket.getOutputStream());
            BufferedReader inFromServer = new BufferedReader(new InputStreamReader(clientSocket.getInputStream()));
            sentence = mScanner.nextLine();
            outToServer.writeBytes(sentence + '\n');
            modifiedSentence = inFromServer.readLine();
            System.out.println("FROM SERVER: " + modifiedSentence);
        }
    }