命令行代码设置代理
java -DsocksProxyHost=代理服务器的IP地址 -DsocksProxyPort=代理服务器监听端口 要执行的源程序
源程序设置代理的方法
System.setProperty("socksProxyHost",代理IP地址);
System.setProperty("socksProxyPort",代理监听端口);
java -DsocksProxyHost=代理服务器的IP地址 -DsocksProxyPort=代理服务器监听端口 要执行的源程序
System.setProperty("socksProxyHost",代理IP地址);
System.setProperty("socksProxyPort",代理监听端口);