HTTP.jl connection refused

I used to have a webservice running on HttpServer and it just worked. Now I migrated that same server to HTTP.jl and when I try to connect to it via its dns name I get “connection refused” (either from a remote machine or even on the same machine via curl); Hower it works if I connect locally via curl on localhost!

At first I thought it was the CentOS firewall but that’s disabled so that’s not it.

Is this a HTTP.jl config issue?

I figured it out: I was using Sockets.localhost in the serve call (took that code from the HTTP documentation). I replaced it with “0.0.0.0” and now it works.