English 中文(简体)
java.net.SocketException: SOCKS服务器的马尔基斯答复
原标题:java.net.SocketException: Malformed reply from SOCKS server

i) 尝试用袖珍材料制作SSLS袖珍材料,但获得这一例外。

 SocketAddress proxyAddr = new InetSocketAddress(proxyHost, proxyPort);
Socket underlying = new Socket(new Proxy(Proxy.Type.SOCKS, proxyAddr));
underlying.connect(new InetSocketAddress(host, port));
SSLSocket socket = (SSLSocket) factory.createSocket(underlying,proxyHost,proxyPort,true);

Exception: java.net.SocketException: Malformed reply from SOCKS server

感谢您的帮助

问题回答

您对使用SOCKS代理公司的申请进行了组合,但所在实体:将你指定为proxyAddr<>/code>。 SOCKS服务器。

To fix this:

(1) 开放工具——> 因特网探索者中的因特网选择(或替代,控制小组网络在Windows 7中的设置)

2) 开放式连接。

3) Click on LAN settings

4) 如果能够“使用代理服务器”,就点击“为所有议定书使用相同的代理服务器”





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...