Connection refused / couldn't connect to host

后端 未结 3 1419
慢半拍i
慢半拍i 2021-01-05 16:45

I have a process that is running on a specific port on my remote Ubuntu machine and I\'m exposing that port via HTTP. When I tried to connect with my client using curl, I\'m

相关标签:
3条回答
  • 2021-01-05 17:02

    Please check your curl version first if it's greater than 7.33.0-3

    Downgrade curl to 7.33.0-3. There is a known bug that is now fixed and should be released with the next version. I got bit by this too.

    Reference Link : https://bbs.archlinux.org/viewtopic.php?id=175433 http://sourceforge.net/p/curl/bugs/1319/

    0 讨论(0)
  • 2021-01-05 17:03

    I don't see the topic title text in the output of the command so I'm not sure if that is actually related. To me the command output and the described behavior suggest that the server process binds explicitly to 127.0.0.1 only instead of binding to the public IP address or the 0.0.0.0 any address, you could check that.

    0 讨论(0)
  • 2021-01-05 17:13

    I think i meet the same problem. At last I tried another port, and it worked. So maybe you can change the port.

    0 讨论(0)
提交回复
热议问题