Asked this question today
but seems to be getting some dispute as to whether this is programming related or not - and I can't see the end of it.
How to proceed in this case?
Asked this question today
but seems to be getting some dispute as to whether this is programming related or not - and I can't see the end of it.
How to proceed in this case?
I posted these as comments on your question in main, but I'll repost them here as an answer:
Since you got a "connection refused" and never got to the API itself, this seems like a Super User or Networking issue.
[from comments] I got to the API if I curl from within the server. It's only when I try from my local machine that it doesn't work
That seems only to reinforce the point. The HTTP API works, but there seems to be a networking issue.
[from comments] I don't think this to be a Super User question because I don't see a non-programmer setting up an IPFS server node on an Ubuntu server and try connect with it through an API
It doesn’t matter. It’s not about the API. Again, as yourself pointed out, the HTTP API works. You simply have a connection issue. This is a networking issue unrelated to your specific use case (connecting to an API).
Basically, you've already verified that the HTTP API works correctly by being able to connect to it locally using cURL. The API works and it's listening to HTTP commands as it should.
You've encountered a connection problem when issuing the same commands from your computer to the server. It looks like there is a connection/firewall issue, which you have correctly pinpointed by doing some basic debugging.
This is not a programming issue, nor it's actually topical to the API you want to use. I don't think the question is on-topic on Stack Overflow.