I've been successfully making use of
http.ListenAndServe(":80", mux)
to host my web service in Go. It only appears to work with localhost however.
http.ListenAndServe("192.168.1.83:80", mux)
This works for specific connections on this address but is there a way to make it work for any ip address on the server?
Edit:
I've checked it with a different port (8080 in this case) and then using ":8080" works as documented. There appears to be something special about port 80 even when testing on the same machine that means it only actually listens on localhost.
For the avoidance of doubt I'm using Windows and all testing is done on the same physical machine. I've also checked running with admin privileges and it makes no difference.