Please tell me what I’m doing wrong, other programs run like this.
I compiled the sources into a binary file and run the server on ubuntu
chmod 777 webserver_linux_amd64
but not working…
in local machine this code work fine
const ( CONN_HOST = "localhost" CONN_PORT = "8089" )
err = http.ListenAndServe(CONN_HOST+":"+CONN_PORT, nil)
maybe need to change CONN_HOST? How to define a host variable correctly for server? Or is there another method? or what could be the problem here?