2

I set global WebProxy by UBUNTU setting->network->networkProxy and then i open

http://whatismyipaddress.com/

and i get my proxy ip address but when i use this command:

wget -qO- http://ipecho.net/plain

I get my real ip address,Does not shell use global proxy setting ?

1 Answer 1

0

If you want to use wget with a proxy, use the --proxy=on option and export the proxy address with export http_proxy="http://proxy.example.com:8080"

See here: http://tech.gaeatimes.com/index.php/archive/how-to-use-wget-through-proxy/ or check the wget man page https://www.gnu.org/software/wget/manual/wget.html

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .