Ciao a tutti
Sto cercando di creare una connessione socket attraverso un proxy aziendale
Solo che mi restituisce un'eccezione java.net.ConnectException: Connection timed out:
host e port sono rispettivamente i puntamenti alla socket remotacodice:Proxy proxy = new Proxy(Proxy.Type.HTTP, new InetSocketAddress("myproxy", myport)); // setup socket Socket socket = new Socket(proxy); InetSocketAddress inet = new InetSocketAddress(host, port); //Connect socket.connect(inet);
Qualcuno potrebbe aiutarmi
Grazie

Rispondi quotando