You are not logged in.

#1 2019-03-28 15:19:07

zheiling
Member
From: Kiev
Registered: 2018-07-07
Posts: 19

[SOLVED] Wget: always "Connection refused"

Every time I'm running wget it only returns "Connection refused".
And this problem is not connected with my Internet provider, because from another device everything works fine.
I don't use any VPN or Proxy.

Last edited by zheiling (2019-03-28 16:57:34)

Offline

#2 2019-03-28 15:25:21

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,163
Website

Re: [SOLVED] Wget: always "Connection refused"

Strange. On my system it always echoes this:

wget: missing URL
Usage: wget [OPTION]... [URL]...

Try `wget --help' for more options.

I.e. what exact command are you typing in and what exaclty is the output?


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#3 2019-03-28 15:38:41

zheiling
Member
From: Kiev
Registered: 2018-07-07
Posts: 19

Re: [SOLVED] Wget: always "Connection refused"

schard wrote:

I.e. what exact command are you typing in and what exaclty is the output?

For example:

$> wget http://dist.libuv.org/dist/v1.9.1/libuv-v1.9.1.tar.gz
--2019-03-28 17:35:19--  http://dist.libuv.org/dist/v1.9.1/libuv-v1.9.1.tar.gz
Connecting to 173.249.48.140:8080... failed: Connection refused.

And that's all...

Offline

#4 2019-03-28 15:41:19

seth
Member
Registered: 2012-09-03
Posts: 61,207

Re: [SOLVED] Wget: always "Connection refused"

Forwards me to https on port 443. "nmap -p 8080 dist.libuv.org" will tell you that the port is closed.
Can you "wget https://dist.libuv.org/dist/v1.9.1/libuv-v1.9.1.tar.gz"?

Offline

#5 2019-03-28 15:45:21

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,163
Website

Re: [SOLVED] Wget: always "Connection refused"

Please also prvide

which wget
type wget

You also may be a victim of geoblocking.

Edit:
What happens on:

wget https://home.richard-neumann.de/pub/screenshot-wks-2019.png

Last edited by schard (2019-03-28 15:48:36)


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#6 2019-03-28 15:51:28

seth
Member
Registered: 2012-09-03
Posts: 61,207

Re: [SOLVED] Wget: always "Connection refused"

Now that shard says it… the server is resolved to 138.197.224.240 for me.
173.249.48.140 is a hoster in Munich and only listens to ssh. There's a DNS resolution problem on your side.

Offline

#7 2019-03-28 15:53:56

zheiling
Member
From: Kiev
Registered: 2018-07-07
Posts: 19

Re: [SOLVED] Wget: always "Connection refused"

schard wrote:

Please also prvide

which wget
type wget

You also may be a victim of geoblocking.

Edit:
What happens on:

wget https://home.richard-neumann.de/pub/screenshot-wks-2019.png

which wget:

/usr/bin/wget

type wget:

wget is /usr/bin/wget

wget https://home.richard-neumann.de/pub/scr … s-2019.png:

--2019-03-28 17:51:11--  https://home.richard-neumann.de/pub/screenshot-wks-2019.png
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Connecting to 173.249.48.140:8080... failed: Connection refused.

Offline

#8 2019-03-28 15:56:20

schard
Forum Moderator
From: Hannover
Registered: 2016-05-06
Posts: 2,163
Website

Re: [SOLVED] Wget: always "Connection refused"

Now that @seth said it. It's strange that all hosts are resolved to 173.249.48.140.
You definitely need to check your DNS settings.


Inofficial first vice president of the Rust Evangelism Strike Force

Offline

#9 2019-03-28 15:56:20

zheiling
Member
From: Kiev
Registered: 2018-07-07
Posts: 19

Re: [SOLVED] Wget: always "Connection refused"

seth wrote:

Forwards me to https on port 443. "nmap -p 8080 dist.libuv.org" will tell you that the port is closed.
Can you "wget https://dist.libuv.org/dist/v1.9.1/libuv-v1.9.1.tar.gz"?

wget https://dist.libuv.org/dist/v1.9.1/libuv-v1.9.1.tar.gz
--2019-03-28 17:54:35--  https://dist.libuv.org/dist/v1.9.1/libuv-v1.9.1.tar.gz
Loaded CA certificate '/etc/ssl/certs/ca-certificates.crt'
Connecting to 173.249.48.140:8080... failed: Connection refused.

Just tried the same from Windows on the same machine and it successfully downloaded.

Offline

#10 2019-03-28 16:01:35

seth
Member
Registered: 2012-09-03
Posts: 61,207

Re: [SOLVED] Wget: always "Connection refused"

Do you understand what DNS is?

dig google.com
dig @8.8.8.8 google.com

Offline

#11 2019-03-28 16:03:07

zheiling
Member
From: Kiev
Registered: 2018-07-07
Posts: 19

Re: [SOLVED] Wget: always "Connection refused"

Found it! I totally forget about .wgetrc in my home directory, which contained outdated proxy settings.
Thanks, @schard and @seth for help!

Offline

#12 2019-03-28 16:30:59

seth
Member
Registered: 2012-09-03
Posts: 61,207

Re: [SOLVED] Wget: always "Connection refused"

Cool.

Please always remember to mark resolved threads by editing your initial posts subject - so others will know that there's no task left, but maybe a solution to find.
Thanks.

Offline

Board footer

Powered by FluxBB