Connection refused while using "wget" command.

Latest response

Hi Team,

Related to RHEL 7 query. Configured network interface with default DHCP setup. Able to download files using "wget" command.
But problem is, when i configured network interface with "none" or "static", able to ping the sites and connect to internet but unable to download the file or files using wget command.

Error:
:80... failed: Connection time out.

Responses

Try the wget command with cache disabled.. "--no-dns-cache" OR "--no-cache"..

Hi,

No luck!!! Its still the same....

Is this a problem with one particular site or common with any site that you wish to download using wget? Could you post the exact page you are trying to download if it is okay, along with the command? Alternatively, have you tried using commands such as "curl" ?

Its common across all the sites... and its same with curl as well....

I am trying to past the output....

uploaded the output... I repeat again... this is issue across all the sites....

This looks to be an issue with your internal proxy server, please check. Check your environment and set proxy server if not configured. Check this from your console : echo $http_proxy

Just wondering how default dhcp setup for network interface is working fine....

The DHCP response can include the HTTP proxy settings, and it looks like RHEL 7 is smart enough to automatically use that information if the DHCP server gives that information.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.