Error when making HTTP GET request in Go: "dial tcp: lookup api.ipify.org on [::1]:53: read udp [::1]:50975->[::1]:53: read: connection refused"
Advertisements I’m trying to make an HTTP GET request in Go using the net/http package to retrieve my public IP address using the api.ipify.org service. I’m encountering an error only after I build the application using the following command: CGO_ENABLED=0 GOOS=linux go build -a -ldflags "-s -w" -o ip get.go However, I noticed that the… Read More Error when making HTTP GET request in Go: "dial tcp: lookup api.ipify.org on [::1]:53: read udp [::1]:50975->[::1]:53: read: connection refused"