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.










share|improve this question





















  • "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














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.










share|improve this question





















  • "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












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.










share|improve this question













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






share|improve this question













share|improve this question











share|improve this question




share|improve this question










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. 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















"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

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













 

draft saved


draft discarded


















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






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















 

draft saved


draft discarded















































 


draft saved


draft discarded














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





















































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







Popular posts from this blog

Use pre created SQLite database for Android project in kotlin

Darth Vader #20

Ondo