Gnutella Forums

Gnutella Forums (https://www.gnutellaforums.com/)
-   español (https://www.gnutellaforums.com/espa-ol/)
-   -   Cliente Gnutella java (https://www.gnutellaforums.com/espa-ol/101489-cliente-gnutella-java.html)

B0rg14 November 9th, 2012 12:16 PM

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.


All times are GMT -7. The time now is 12:05 PM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 ©2011, Crawlability, Inc.

Copyright © 2020 Gnutella Forums.
All Rights Reserved.