Hey babashkeans (is that the right term?) i just encountered that i can't get weather with http-client or the httpkit client to localhost so that somehow doesn't and http://java.net tells me that the connection was refused. So i tried it with ipv6 http://[::1]:port and it worked. Anyone encountered it and know what happens here?
How is the server setup? Are you sure it’s not only listening on an ipv6 interface? Does it work with curl?
it works with curl and even postman
Maybe the server is listening on just ipv6 and curl resolves it like that?
hrm that could be possible
[Sat May 3 07:27:37 2025] [::1]:38030 Accepted
thats what i get even when connecting with curlCan you list all the listening ports like with “netstat -tulpn” on unix systems and see if the sever is there?
It should show the interface it’s on too
Yeah looks like curl did a ipv6
yeah i guess you are right
tcp6 0 0 ::1:8080 :::* LISTEN 47572/php8.2 Can verify by passing -vvv to see the DNS
I had this problem before, and I solved it by specifying :version option to :http1.1