I have defined following Sock5 proxies using TSocks. Following is my Tsocks file
local = 192.168.5.0/255.255.255.0
# Otherwise we use the server
server = 192.168.5.1
#HKG
path {
server = localhost
server_port = 8082
reaches = 10.110.80.0/255.255.255.0
server_type = 5
}
#DCA
path {
server = localhost
server_port = 8081
reaches = 10.125.4.0/255.255.255.0
server_type = 5
}
Now tsocks telnet IP PORT
is working, However Java is not able to get proxy as tsocks java class
is giving connection time out when connecting with IP at PORT
How to make Java to pick this proxy setup?