For your second question read this post from @Fox ,
maybe its what you need. Its in Russian, but you can
use translator. There is an example script too >
Thank you, i have used proxies in the past. I think the problem is with my ISP because 1st internet connection same proxy setting is working but for the other it is not.