I am following the MyEtherWallet: Use Your Own Server Guide to use MyEtherWallet on my private ethereum network. I am doing this setup on my node, where my ethereum node runs.
I have done first 4 steps.
In response.js file: I have set host as:
host: '127.0.0.1'
In runLocalServer.js file: I have set app.use as:
app.use(vhost('127.0.0.1', require('./index.js').app));
Since port 80 is occupied, I have changed port number 80 to my free port number as 8000;
httpServer.listen(80);inrunLocalServer.js.httpServer.listen(80);inrunServer.js
As recommended on Step-2 I run:
[~]$ node runLocalServer.js
//waits
But on Step-3, when I navigate to http://localhost/api.mew inside my node, I do have 404 or timeout errors. I was not able to end up on a empty/white page.
I was not able to figure out how to overcome this problem or where I am doing something wrong/missing. Any valuable guidance will be appreciated.
Thank you for your valuable time and help.
index.htmlinside my local machine. But later on can I do something like:SERVERURLinetherwallet-master.jstomewServer.prototype.SERVERURL = "http://<my_ip>:8000/api.mew";I replaced127.0.0.1with my server's IP address innodeIP.jsonand I do face with following error when I try to navigate intohttp://<my_ip>:8000/index.htmlerror:Cannot GET /index.htmland navigate intohttp://<my_ip>:8000/api.mewerror:Cannot GET /api.mew– alper Jan 08 '17 at 17:41python -m SimpleHTTPServer 8000. In this case you need two ports: one to serveapi.mewand another one to serveindex.html. Another option is to rewriterunLocalServer.jsto serve both. – max taldykin Jan 08 '17 at 17:49http://<my_ip>:8000/api.mewreturn an empty page like inhttp://localhost:8000/api.mewinstead ofCannot GET /api.mew. – alper Jan 08 '17 at 18:03app.use(vhost('<my_ip>', require('./index.js').app));inrunLocalServer.jsand blank page show up forhttp://<my_ip>:8000/api.mew(please ignore my previous comment). Do you have any suggestion about to re-writerunLocalServer.jsto serve but since I only have one port available. – alper Jan 08 '17 at 18:13node runLocalServer.js=>Error: connect ECONNREFUSED] code: 'ECONNREFUSED', errno: 'ECONNREFUSED', syscall: 'connect'when I refresh the website onhttp://<my_ip>:8000. – alper Jan 08 '17 at 19:07