Cannot curl local server
up vote
0
down vote
favorite
I am hosting several services on a laptop and accessing them through a reverse proxy using Caddy. I can hit the websites no problem from any browser, I can also cURL the websites from any computer I try, except for using cURL on the same machine. It never connects.
The URL resolves via a CNAME record attached to my homes IP, I have tried using the network loopbacks to connect on the local machine and have had no luck with those either.
These services need to communicate with each other. I have reached the point of going mad over this issue.
Summary:
- Machine running several services with web interfaces that intercommunicate with each other
- Can hit web interfaces via a browser, can cURL from any other machine
- Cannot cURL or wget anything from that same machine which ruins the ability for services to intercommunicate
- I can ping the URL from the machine and get 0% packet loss
Any ideas? I am running on Arch on a System76 machine. The laptop itself is behind a Google OnHub router with port forwarding to 80 and 443 to that machine.
curl dns
add a comment |
up vote
0
down vote
favorite
I am hosting several services on a laptop and accessing them through a reverse proxy using Caddy. I can hit the websites no problem from any browser, I can also cURL the websites from any computer I try, except for using cURL on the same machine. It never connects.
The URL resolves via a CNAME record attached to my homes IP, I have tried using the network loopbacks to connect on the local machine and have had no luck with those either.
These services need to communicate with each other. I have reached the point of going mad over this issue.
Summary:
- Machine running several services with web interfaces that intercommunicate with each other
- Can hit web interfaces via a browser, can cURL from any other machine
- Cannot cURL or wget anything from that same machine which ruins the ability for services to intercommunicate
- I can ping the URL from the machine and get 0% packet loss
Any ideas? I am running on Arch on a System76 machine. The laptop itself is behind a Google OnHub router with port forwarding to 80 and 443 to that machine.
curl dns
"Cannot cURL or wget anything from that same machine" you have then name resolution problem on that server. This is to debug. Usedig
(notping
) to troubleshoot DNS issues, after having checked/etc/resolv.conf
and/etc/hosts
and/etc/nsswitch.conf
for current configuration. Also this is not very programming related, hence offtopic here. And in any case you do not give a lot of details about troubleshooting you did. "Cannot cURL or wget" is not very descriptive... what output? timeout? what error message? etc.
– Patrick Mevzek
Nov 9 at 22:32
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am hosting several services on a laptop and accessing them through a reverse proxy using Caddy. I can hit the websites no problem from any browser, I can also cURL the websites from any computer I try, except for using cURL on the same machine. It never connects.
The URL resolves via a CNAME record attached to my homes IP, I have tried using the network loopbacks to connect on the local machine and have had no luck with those either.
These services need to communicate with each other. I have reached the point of going mad over this issue.
Summary:
- Machine running several services with web interfaces that intercommunicate with each other
- Can hit web interfaces via a browser, can cURL from any other machine
- Cannot cURL or wget anything from that same machine which ruins the ability for services to intercommunicate
- I can ping the URL from the machine and get 0% packet loss
Any ideas? I am running on Arch on a System76 machine. The laptop itself is behind a Google OnHub router with port forwarding to 80 and 443 to that machine.
curl dns
I am hosting several services on a laptop and accessing them through a reverse proxy using Caddy. I can hit the websites no problem from any browser, I can also cURL the websites from any computer I try, except for using cURL on the same machine. It never connects.
The URL resolves via a CNAME record attached to my homes IP, I have tried using the network loopbacks to connect on the local machine and have had no luck with those either.
These services need to communicate with each other. I have reached the point of going mad over this issue.
Summary:
- Machine running several services with web interfaces that intercommunicate with each other
- Can hit web interfaces via a browser, can cURL from any other machine
- Cannot cURL or wget anything from that same machine which ruins the ability for services to intercommunicate
- I can ping the URL from the machine and get 0% packet loss
Any ideas? I am running on Arch on a System76 machine. The laptop itself is behind a Google OnHub router with port forwarding to 80 and 443 to that machine.
curl dns
curl dns
asked Nov 9 at 21:05
Ode
352416
352416
"Cannot cURL or wget anything from that same machine" you have then name resolution problem on that server. This is to debug. Usedig
(notping
) to troubleshoot DNS issues, after having checked/etc/resolv.conf
and/etc/hosts
and/etc/nsswitch.conf
for current configuration. Also this is not very programming related, hence offtopic here. And in any case you do not give a lot of details about troubleshooting you did. "Cannot cURL or wget" is not very descriptive... what output? timeout? what error message? etc.
– Patrick Mevzek
Nov 9 at 22:32
add a comment |
"Cannot cURL or wget anything from that same machine" you have then name resolution problem on that server. This is to debug. Usedig
(notping
) to troubleshoot DNS issues, after having checked/etc/resolv.conf
and/etc/hosts
and/etc/nsswitch.conf
for current configuration. Also this is not very programming related, hence offtopic here. And in any case you do not give a lot of details about troubleshooting you did. "Cannot cURL or wget" is not very descriptive... what output? timeout? what error message? etc.
– Patrick Mevzek
Nov 9 at 22:32
"Cannot cURL or wget anything from that same machine" you have then name resolution problem on that server. This is to debug. Use
dig
(not ping
) to troubleshoot DNS issues, after having checked /etc/resolv.conf
and /etc/hosts
and /etc/nsswitch.conf
for current configuration. Also this is not very programming related, hence offtopic here. And in any case you do not give a lot of details about troubleshooting you did. "Cannot cURL or wget" is not very descriptive... what output? timeout? what error message? etc.– Patrick Mevzek
Nov 9 at 22:32
"Cannot cURL or wget anything from that same machine" you have then name resolution problem on that server. This is to debug. Use
dig
(not ping
) to troubleshoot DNS issues, after having checked /etc/resolv.conf
and /etc/hosts
and /etc/nsswitch.conf
for current configuration. Also this is not very programming related, hence offtopic here. And in any case you do not give a lot of details about troubleshooting you did. "Cannot cURL or wget" is not very descriptive... what output? timeout? what error message? etc.– Patrick Mevzek
Nov 9 at 22:32
add a comment |
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53233264%2fcannot-curl-local-server%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
"Cannot cURL or wget anything from that same machine" you have then name resolution problem on that server. This is to debug. Use
dig
(notping
) to troubleshoot DNS issues, after having checked/etc/resolv.conf
and/etc/hosts
and/etc/nsswitch.conf
for current configuration. Also this is not very programming related, hence offtopic here. And in any case you do not give a lot of details about troubleshooting you did. "Cannot cURL or wget" is not very descriptive... what output? timeout? what error message? etc.– Patrick Mevzek
Nov 9 at 22:32