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:

codice:
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);
host e port sono rispettivamente i puntamenti alla socket remota

Qualcuno potrebbe aiutarmi
Grazie