java修改本地代理服务器地址我们通常经过  工具--internet选项 ---连接--局域网设置 然后选定代理服务器 从而修改了IP 和端口
能否通过JAVA对改IP 和端口进行修改 或者对代理服务器屏蔽掉 怎样实现各位壮士帮帮忙 小弟一直在查资料 始终不得其解

解决方案 »

  1.   

    看看Runtime类估计对你有帮助 
      

  2.   

    @echo offnetsh interface ip  set address "±¾µØÁ¬½Ó"   source = static addr = 192.168.1.116 mask=255.255.255.0     
    netsh interface ip set address   "±¾µØÁ¬½Ó" gateway = 192.168.1.254 gwmetric =1
    netsh interface ip set dns  "±¾µØÁ¬½Ó" source = static  addr = 202.106.196.115
    netsh interface ip add dns "±¾µØÁ¬½Ó" "202.106.0.20"echo   ÃüÁîÖ´Ðгɹ¦!ÇëÑéÖ¤!pause
      

  3.   

    @echo offnetsh interface ip  set address "本地连接"   source = static addr = 192.168.1.116 mask=255.255.255.0     
    netsh interface ip set address   "本地连接" gateway = 192.168.1.254 gwmetric =1
    netsh interface ip set dns  "本地连接" source = static  addr = 202.106.196.115
    netsh interface ip add dns "本地连接" "202.106.0.20"echo   命令执行成功!pause
      

  4.   


    佩服--》一下子把问题变成JAVA调用脚本了!