View Single Post
  #1 (permalink)  
Old November 9th, 2012
B0rg14 B0rg14 is offline
Novicius
 
Join Date: November 8th, 2012
Posts: 1
B0rg14 is a great assister to others; your light through the dark tunnel
Default Cliente Gnutella java

Hola, estoy intentando crear un cliente Gnutella basico, el problema es que no se si realizo bien la primera conexion. Tengo este codigo:
Socket s;
try{
s = new Socket("220.156.49.77",6346);
PrintWriter salida = new PrintWriter(s.getOutputStream());
salida.print("GNUTELLA CONNECT/0.6\n\n");
salida.flush();
Scanner scans = new Scanner(s.getInputStream());
while(scans.hasNext()){
System.out.println(scans.nextLine());
}
s.close();
}catch (Exception e) {System.err.println(e);}

La dirección IP es de aquí ERROR | Beacon Cache II 0.8.0.1
Pero la respuesta que me sale por pantalla es:
GNUTELLA/0.6 503 No X-Ultrapeer
X-Try-Ultrapeers: 202.157.6.67:6346,111.217.228.80:6346,142.196.179. 76:27016,172.223.138.205:27016,37.251.22.43:27016, 76.120.172.112:27016,78.249.160.65:27016,107.202.5 6.52:27016,50.123.64.85:29043,174.134.159.228:3799 9

Y si intento conectarme con esos servidores con esos puertos no puedo, alguien puede ayudarme.
Gracias.
Reply With Quote