Skip to content
Discussion options

You must be logged in to vote

I don't think this is important. In go binding to 0.0.0.0 or [::] should bind to all interfaces. From quick test running this:

package main

import (
    "net/http"
)

func main() {
    http.ListenAndServe("0.0.0.0:8080", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
        w.Write([]byte("Hello, World!"))
    }))
}

I can access server using all this addresses

  • curl -v localhost:8080
  • curl -v [::1]:8080
  • curl -v 127.0.0.1:8080
  • curl -v 192.168.0.170:8080
  • curl -v [xxxx:xxxx:xxxx:xxxx:ed6a:f5be:99f:899e]:8080
  • curl -v [fe80::xxxx:xxxx:xxxx:xxxx%wlp1s0]:8080

Swaping 0.0.0.0:8080 for [::]:8080 or :8080 works same. But I didn't test Argo on IPv6 only cluster.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ramanNarasimhan77
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants