From 97ccca35f275790ca06e9b03460689cbb832166c Mon Sep 17 00:00:00 2001 From: Josh Grebe Date: Sat, 25 Jan 2020 17:45:44 -0500 Subject: [PATCH] Listen on all interfaces, this is a demo after all --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index a5e68c0..4a7bb06 100644 --- a/main.go +++ b/main.go @@ -51,7 +51,7 @@ var upgrader = websocket.Upgrader{ func main() { http.HandleFunc("/ws/", subscribe) http.HandleFunc("/", serveIndex) - log.Fatal(http.ListenAndServe("localhost:9888", nil)) + log.Fatal(http.ListenAndServe("0.0.0.0:9888", nil)) } func serveIndex(w http.ResponseWriter, r *http.Request) { f, err := os.Open("index.html")