package chachichat.client;

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		System.out.print("Introduzca la ip a la que desea conectarse: ");
		String ip = sc.next();
		System.out.println("Conectando a la ip " + ip);
		sc.close();
	}

}

@@ -23,16 +23,45 @@
 ent;%0D%0A%0D%0A
+import java.io.IOException;%0D%0A
 import j
@@ -79,16 +79,16 @@
 anner;%0D%0A
-
 %0D%0Apublic
@@ -183,24 +183,28 @@
 ystem.in);%0D%0A
+%09%09%0D%0A
 %09%09System.out
@@ -292,55 +292,232 @@
 %0D%0A%09%09
-System.out.println(%22Conectando a la ip %22 + ip);
+int puerto = 7777;%0D%0A%09%09%0D%0A%09%09try %7B%0D%0A%09%09%09ChatClient cliente = new ChatClient(ip, puerto);%0D%0A%09%09%09System.out.println(%22Conectando a la ip %22 + ip);%0D%0A%09%09%7D catch (IOException e) %7B%0D%0A%09%09%09System.out.println(%22Unable to connect to %22+ip);%0D%0A%09%09%7D%0D%0A
 %0D%0A%09%09

Connect Main