wget can't connect to domain on same server
Clash Royale CLAN TAG#URR8PPP
up vote
1
down vote
favorite
I'm trying to run the following command on the server. The site example.com is hosted on the same server.
wget --spider "https://example.com/script.php?actions=1"
Response:
Spider mode enabled. Check if remote file exists.
--2018-05-03 16:50:48-- https://example.com/script.php?actions=1
Resolving example.com (example.com)... [CORRECT_IP_ADDRESS]
Connecting to example.com (example.com)|[CORRECT_IP_ADDRES]|:443... failed: Connection timed out.
Retrying.
but it fails with a timeout. It's the same with "http".
wget resolves the domain to the correct IP-address (CORRECT_IP_ADDRESS) and pingning example.com gives the same IP.
The site is up and running and can be accessed from anywhere using any browser. I can successfully run the same command from any other server (inside or outside our own network) without problems.
The server is running a standard Debian 9 setup with Apache, PHP 7 and MySql. The server has two ethernet ports but only uses one. Static external IP.
After some comments (thank you all!) I have updated my post with the result from the suggested tests.
I have tried the following commands from the within the same server:
telnet example.com => Connection refused
telnet example.com 443 => Connection timed out
telnet IP_ADDRESS => Connection refused
telnet IP_ADDRESS 443 => Connection timed out
telnet localhost => Connection refused
telnet localhost 443 => SUCCESS
Running the same commands from any other server gives:
telnet example.com => Resource temporarily unavailable
telnet example.com 443 => SUCCESS
telnet IP_ADDRESS => Resource temporarily unavailable
telnet IP_ADDRESS 443 => SUCCESS
Any idea where/how to start troubleshooting?
debian wget
 |Â
show 4 more comments
up vote
1
down vote
favorite
I'm trying to run the following command on the server. The site example.com is hosted on the same server.
wget --spider "https://example.com/script.php?actions=1"
Response:
Spider mode enabled. Check if remote file exists.
--2018-05-03 16:50:48-- https://example.com/script.php?actions=1
Resolving example.com (example.com)... [CORRECT_IP_ADDRESS]
Connecting to example.com (example.com)|[CORRECT_IP_ADDRES]|:443... failed: Connection timed out.
Retrying.
but it fails with a timeout. It's the same with "http".
wget resolves the domain to the correct IP-address (CORRECT_IP_ADDRESS) and pingning example.com gives the same IP.
The site is up and running and can be accessed from anywhere using any browser. I can successfully run the same command from any other server (inside or outside our own network) without problems.
The server is running a standard Debian 9 setup with Apache, PHP 7 and MySql. The server has two ethernet ports but only uses one. Static external IP.
After some comments (thank you all!) I have updated my post with the result from the suggested tests.
I have tried the following commands from the within the same server:
telnet example.com => Connection refused
telnet example.com 443 => Connection timed out
telnet IP_ADDRESS => Connection refused
telnet IP_ADDRESS 443 => Connection timed out
telnet localhost => Connection refused
telnet localhost 443 => SUCCESS
Running the same commands from any other server gives:
telnet example.com => Resource temporarily unavailable
telnet example.com 443 => SUCCESS
telnet IP_ADDRESS => Resource temporarily unavailable
telnet IP_ADDRESS 443 => SUCCESS
Any idea where/how to start troubleshooting?
debian wget
try curl and ip address and pass hostname
â mdeora
May 3 at 15:04
1
Are you running a firewall on your example.com server? Can you telnet to example.com 443 from the server using both the IP address and FQDN?
â L.Ray
May 3 at 15:20
@mdeora curl also fails with a timeout, if run from the same server. From any other server curl works.
â Juri Salminen
May 3 at 15:42
@L.Ray I have not installed/enabled any firewall on the server but when I try to telnet example.com from the same server it fails with "Connection refused". Telnet from any other server to example.com works better - "Trying IP_ADDRESS" for about 30 seconds and then it fails with "Unable to connect to remote host: Resource temporarily unavailable".
â Juri Salminen
May 3 at 15:42
Hmm, I thinktelnet example.com 443
was meant. The reason I suspect you mis-interpreted is that this command should be able to connect OK in the same situations thatwget https://example.com
works. But you said the wget command worked and telnet didn't, if you ran them on a different computer.
â sourcejedi
May 3 at 16:28
 |Â
show 4 more comments
up vote
1
down vote
favorite
up vote
1
down vote
favorite
I'm trying to run the following command on the server. The site example.com is hosted on the same server.
wget --spider "https://example.com/script.php?actions=1"
Response:
Spider mode enabled. Check if remote file exists.
--2018-05-03 16:50:48-- https://example.com/script.php?actions=1
Resolving example.com (example.com)... [CORRECT_IP_ADDRESS]
Connecting to example.com (example.com)|[CORRECT_IP_ADDRES]|:443... failed: Connection timed out.
Retrying.
but it fails with a timeout. It's the same with "http".
wget resolves the domain to the correct IP-address (CORRECT_IP_ADDRESS) and pingning example.com gives the same IP.
The site is up and running and can be accessed from anywhere using any browser. I can successfully run the same command from any other server (inside or outside our own network) without problems.
The server is running a standard Debian 9 setup with Apache, PHP 7 and MySql. The server has two ethernet ports but only uses one. Static external IP.
After some comments (thank you all!) I have updated my post with the result from the suggested tests.
I have tried the following commands from the within the same server:
telnet example.com => Connection refused
telnet example.com 443 => Connection timed out
telnet IP_ADDRESS => Connection refused
telnet IP_ADDRESS 443 => Connection timed out
telnet localhost => Connection refused
telnet localhost 443 => SUCCESS
Running the same commands from any other server gives:
telnet example.com => Resource temporarily unavailable
telnet example.com 443 => SUCCESS
telnet IP_ADDRESS => Resource temporarily unavailable
telnet IP_ADDRESS 443 => SUCCESS
Any idea where/how to start troubleshooting?
debian wget
I'm trying to run the following command on the server. The site example.com is hosted on the same server.
wget --spider "https://example.com/script.php?actions=1"
Response:
Spider mode enabled. Check if remote file exists.
--2018-05-03 16:50:48-- https://example.com/script.php?actions=1
Resolving example.com (example.com)... [CORRECT_IP_ADDRESS]
Connecting to example.com (example.com)|[CORRECT_IP_ADDRES]|:443... failed: Connection timed out.
Retrying.
but it fails with a timeout. It's the same with "http".
wget resolves the domain to the correct IP-address (CORRECT_IP_ADDRESS) and pingning example.com gives the same IP.
The site is up and running and can be accessed from anywhere using any browser. I can successfully run the same command from any other server (inside or outside our own network) without problems.
The server is running a standard Debian 9 setup with Apache, PHP 7 and MySql. The server has two ethernet ports but only uses one. Static external IP.
After some comments (thank you all!) I have updated my post with the result from the suggested tests.
I have tried the following commands from the within the same server:
telnet example.com => Connection refused
telnet example.com 443 => Connection timed out
telnet IP_ADDRESS => Connection refused
telnet IP_ADDRESS 443 => Connection timed out
telnet localhost => Connection refused
telnet localhost 443 => SUCCESS
Running the same commands from any other server gives:
telnet example.com => Resource temporarily unavailable
telnet example.com 443 => SUCCESS
telnet IP_ADDRESS => Resource temporarily unavailable
telnet IP_ADDRESS 443 => SUCCESS
Any idea where/how to start troubleshooting?
debian wget
edited May 4 at 8:27
asked May 3 at 15:02
Juri Salminen
63
63
try curl and ip address and pass hostname
â mdeora
May 3 at 15:04
1
Are you running a firewall on your example.com server? Can you telnet to example.com 443 from the server using both the IP address and FQDN?
â L.Ray
May 3 at 15:20
@mdeora curl also fails with a timeout, if run from the same server. From any other server curl works.
â Juri Salminen
May 3 at 15:42
@L.Ray I have not installed/enabled any firewall on the server but when I try to telnet example.com from the same server it fails with "Connection refused". Telnet from any other server to example.com works better - "Trying IP_ADDRESS" for about 30 seconds and then it fails with "Unable to connect to remote host: Resource temporarily unavailable".
â Juri Salminen
May 3 at 15:42
Hmm, I thinktelnet example.com 443
was meant. The reason I suspect you mis-interpreted is that this command should be able to connect OK in the same situations thatwget https://example.com
works. But you said the wget command worked and telnet didn't, if you ran them on a different computer.
â sourcejedi
May 3 at 16:28
 |Â
show 4 more comments
try curl and ip address and pass hostname
â mdeora
May 3 at 15:04
1
Are you running a firewall on your example.com server? Can you telnet to example.com 443 from the server using both the IP address and FQDN?
â L.Ray
May 3 at 15:20
@mdeora curl also fails with a timeout, if run from the same server. From any other server curl works.
â Juri Salminen
May 3 at 15:42
@L.Ray I have not installed/enabled any firewall on the server but when I try to telnet example.com from the same server it fails with "Connection refused". Telnet from any other server to example.com works better - "Trying IP_ADDRESS" for about 30 seconds and then it fails with "Unable to connect to remote host: Resource temporarily unavailable".
â Juri Salminen
May 3 at 15:42
Hmm, I thinktelnet example.com 443
was meant. The reason I suspect you mis-interpreted is that this command should be able to connect OK in the same situations thatwget https://example.com
works. But you said the wget command worked and telnet didn't, if you ran them on a different computer.
â sourcejedi
May 3 at 16:28
try curl and ip address and pass hostname
â mdeora
May 3 at 15:04
try curl and ip address and pass hostname
â mdeora
May 3 at 15:04
1
1
Are you running a firewall on your example.com server? Can you telnet to example.com 443 from the server using both the IP address and FQDN?
â L.Ray
May 3 at 15:20
Are you running a firewall on your example.com server? Can you telnet to example.com 443 from the server using both the IP address and FQDN?
â L.Ray
May 3 at 15:20
@mdeora curl also fails with a timeout, if run from the same server. From any other server curl works.
â Juri Salminen
May 3 at 15:42
@mdeora curl also fails with a timeout, if run from the same server. From any other server curl works.
â Juri Salminen
May 3 at 15:42
@L.Ray I have not installed/enabled any firewall on the server but when I try to telnet example.com from the same server it fails with "Connection refused". Telnet from any other server to example.com works better - "Trying IP_ADDRESS" for about 30 seconds and then it fails with "Unable to connect to remote host: Resource temporarily unavailable".
â Juri Salminen
May 3 at 15:42
@L.Ray I have not installed/enabled any firewall on the server but when I try to telnet example.com from the same server it fails with "Connection refused". Telnet from any other server to example.com works better - "Trying IP_ADDRESS" for about 30 seconds and then it fails with "Unable to connect to remote host: Resource temporarily unavailable".
â Juri Salminen
May 3 at 15:42
Hmm, I think
telnet example.com 443
was meant. The reason I suspect you mis-interpreted is that this command should be able to connect OK in the same situations that wget https://example.com
works. But you said the wget command worked and telnet didn't, if you ran them on a different computer.â sourcejedi
May 3 at 16:28
Hmm, I think
telnet example.com 443
was meant. The reason I suspect you mis-interpreted is that this command should be able to connect OK in the same situations that wget https://example.com
works. But you said the wget command worked and telnet didn't, if you ran them on a different computer.â sourcejedi
May 3 at 16:28
 |Â
show 4 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f441573%2fwget-cant-connect-to-domain-on-same-server%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
try curl and ip address and pass hostname
â mdeora
May 3 at 15:04
1
Are you running a firewall on your example.com server? Can you telnet to example.com 443 from the server using both the IP address and FQDN?
â L.Ray
May 3 at 15:20
@mdeora curl also fails with a timeout, if run from the same server. From any other server curl works.
â Juri Salminen
May 3 at 15:42
@L.Ray I have not installed/enabled any firewall on the server but when I try to telnet example.com from the same server it fails with "Connection refused". Telnet from any other server to example.com works better - "Trying IP_ADDRESS" for about 30 seconds and then it fails with "Unable to connect to remote host: Resource temporarily unavailable".
â Juri Salminen
May 3 at 15:42
Hmm, I think
telnet example.com 443
was meant. The reason I suspect you mis-interpreted is that this command should be able to connect OK in the same situations thatwget https://example.com
works. But you said the wget command worked and telnet didn't, if you ran them on a different computer.â sourcejedi
May 3 at 16:28