diff --git a/whatsMyIpServer.go b/whatsMyIpServer.go index 7daba43..1288bc1 100644 --- a/whatsMyIpServer.go +++ b/whatsMyIpServer.go @@ -24,6 +24,8 @@ func respondWithIp(writer http.ResponseWriter, request *http.Request) { } func main() { + addr := ":8080" http.HandleFunc("/", respondWithIp) - http.ListenAndServe(":8080", nil) + fmt.Println("Starting server on", addr) + http.ListenAndServe(addr, nil) }