I am trying to run a web server with Go and Google App Engine. The server is an Ubuntu server, and i have successfully installed both Go and Google Appengine. I can use the server i created locally... however, I want to be able to use it outside just my local network, from my office for example. Is there anyway to set this up? Rather than run the server on localhost:6000, I want to be able to connect to it externally via XXX.XXX.XXX.XXX:6000. I have opened ports 6000-6999 on my router.
Just incase anyone wants to see it, my server code is here, and is very simple.
package main
import (
"fmt"
"net/http"
)
func handler(w http.ResponseWriter, r *http.Request) {
fmt.Fprintf(w, "Hello world.")
}
func init() {
http.HandleFunc("/", handler)
}
Thanks in advance...