--- client/src/main/java/org/apache/xmlrpc/client/XmlRpcLiteHttpTransport.java (revision 436669) +++ client/src/main/java/org/apache/xmlrpc/client/XmlRpcLiteHttpTransport.java (working copy) @@ -131,7 +131,7 @@ for (int tries = 0; ; tries++) { try { - socket = newSocket(); + socket = newSocket(hostname, port); output = new BufferedOutputStream(socket.getOutputStream()){ /** Closing the output stream would close the whole socket, which we don't want, * because the don't want until the request is processed completely. @@ -164,7 +164,7 @@ } } - protected Socket newSocket() throws UnknownHostException, IOException { + protected Socket newSocket(String hostname, int port) throws UnknownHostException, IOException { return new Socket(hostname, port); }