ERRORE: java.net.ConnectException: Connection refused: connectcodice:import java.net.*; import java.io.*; public class EsempioNet1 { public static void main(String args[]){ Socket s = null; try { s = new Socket("localhost",13); InputStream is = s.getInputStream(); InputStreamReader ir = new InputStreamReader(is); BufferedReader r = new BufferedReader(ir); String line = r.readLine(); System.out.println(line); s.close(); } catch (Exception e){ System.err.println(e); } } }
(server tomcat)
Qualcuno mi sa spiegare il motivo?
GRAZIE E CIAO
![]()

Rispondi quotando