I want to run a local server The javascript should ask for the URL of the local web server and then should be able to communicate with it Ideally the brower would be running on the same machine as local file server You could use nodejs for the server or go See : https://hackernoon.com/how-to-create-a-web-server-in-go-a064277287c9 https://astaxie.gitbooks.io/build-web-application-with-golang/en/04.5.html