gowut icon indicating copy to clipboard operation
gowut copied to clipboard

Calling NewServer with a 0.0.0.0 IP results in gowut attempting to open a browser to 0.0.0.0, which predictably fails

Open AmanitaVerna opened this issue 9 years ago • 2 comments

Code example:

this.gwuSvr = gwu.NewServer("guitest", "0.0.0.0:3434")
this.gwuSvr.AddSessCreatorName("login", "Login Window")
this.gwuSvr.AddSHandler(MySessHandler{this, nil})
this.gwuSvr.Start("login")

When Start is called, gowut opens a browser page to the ip and port that were specified in NewServer. In this case, it attempts (and fails) to connect to 0.0.0.0, because that isn't a real IP that can be connected to, it's just a way of saying "listen on all interfaces instead of just one."

AmanitaVerna avatar May 24 '16 14:05 AmanitaVerna

what os are you on ? is this still an issue ? on macOS this is definitely valid, so I think this can be closed

s00500 avatar Jan 02 '21 14:01 s00500

on windows 10, and yes, this is still an issue

AmanitaVerna avatar Jan 02 '21 19:01 AmanitaVerna