diff --git a/Client.java b/Client.java index 5ee9f2a..d780886 100644 --- a/Client.java +++ b/Client.java @@ -22,7 +22,7 @@ public static void main(String[] args) throws UnknownHostException, IOException, ObjectInputStream ois = null; int port = 9876; for(int i=0; i<5;i++){ - socket = new Socket("127.0.0.1", port); + socket = new Socket("hangmanserver", port); oos = new ObjectOutputStream(socket.getOutputStream()); System.out.println("Sending request to Socket Server"); if(i==4)oos.writeObject("exit");