Java socks 4代理问题

时间:2013-01-17 19:41:35

标签: java sockets io java-io

我已经设置java使用反射调用java.net.SocksSocketImpl #setV4来使用SOCK4。我和Socks5的连接工作得很好,但是对于Socks 4,我得到了许多Socket Exceptions。例如:

java.net.SocketException: Malformed reply from SOCKS server
    at java.net.SocksSocketImpl.readSocksReply(Unknown Source)
    at java.net.SocksSocketImpl.connectV4(Unknown Source)
    at java.net.SocksSocketImpl.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)
    at java.net.Socket.connect(Unknown Source)

有什么想法吗?

0 个答案:

没有答案