0
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...
I tried doing this, but was still unable to access the server from my office. – Austin Mueller – 2013-01-07T17:22:36.927
can you try again with your firewall off? – neo – 2013-01-07T17:39:24.223
I ran "sudo ufw disable" then "dev_appserver.py --port=6000 --address=0.0.0.0 myapp/" Curl gives me this curl: (7) couldn't connect to host and Chrome gives me "This webpage is not available - Error 312 (net::ERR_UNSAFE_PORT): Unknown error." – Austin Mueller – 2013-01-07T18:26:47.597
try other port for net::ERR_UNSAFE_PORT. 8080 is a good one. – neo – 2013-01-07T18:55:03.053
Turns out the ports weren't forwarded properly on my router, also running on port 8080 made chrome happy – Austin Mueller – 2013-01-08T05:49:45.197