I reset it, at all places I knew to set proxy but still each time when I started my terminal, it automatically started connecting to proxy server.
The problem was that i was not able to reset the environment variables. You can check it by typing following in terminal:
set | grep proxy
or
echo $http_proxy
It will show you if you have any value set to your proxy variable.