import java.io.IOException;
import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;
import java.util.Scanner;

public class NetworkClient {
	
	private static final int PORT = 57216;
	
	private static String sentence;
	private static String tempSentence;
	
	private static boolean hasJoined;
	
	private static String ipAddress;
	
	private static Scanner userInput;
	private static Socket clientSocket;
	private static Scanner socketReader;
	
	private static PrintWriter clientOutput;
	
	public static void main(String args[]) throws IOException, UnknownHostException {
		
		ipAddress = "130.225.198.209";
		
		//This currently gets the IP of the local host. 
		//Should not get local host, but the actual host, which is on a separate computer.
		//host = InetAddress.;
		
		//This sets up the program's ability to read any input that is parsed into it.
		userInput = new Scanner(System.in);
		clientSocket = new Socket(ipAddress, PORT);
		socketReader = new Scanner(clientSocket.getInputStream());
		
		//This is to prompt the user to provide an input.
		System.out.println("Enter a sentence : ");
		sentence = userInput.nextLine();
		
		//This parses information from the client to the server.
		clientOutput = new PrintWriter(clientSocket.getOutputStream());
		clientOutput.println(sentence);
		clientOutput.flush();
		
		//This prints out what is parsed back to the client from  the server.
		tempSentence = socketReader.nextLine();
		System.out.println(tempSentence);
		
		
	}	

}

@@ -236,12 +236,12 @@
  = 5
-7216
+8802
 ;%0A%09%0A
@@ -332,29 +332,25 @@
 tic 
-boolean hasJoined
+String hostName
 ;%0A
-%09%0A
 %09pri
@@ -365,17 +365,24 @@
 tic 
-String ip
+InetAddress host
 Addr
@@ -636,38 +636,128 @@
 %09%0A%09%09
-ipAddress = %22130.225.198.209%22;
+hostName = %22ThatGuyWithTheBeard%22;%0A%09%09System.out.println(hostName);%0A%09%09%0A%09%09hostAddress = InetAddress.getByName(hostName);%0A%09%09
 %0A%09%09%0A
@@ -1071,10 +1071,12 @@
 ket(
-ip
+host
 Addr

Test With Hostname