daxeel / blockshell

🎉 Minimal Blockchain Learning CLI
MIT License
1.38k stars 121 forks source link

Change 127.0.0.1 by server ip #8

Open hugoforat opened 6 years ago

hugoforat commented 6 years ago

Hello,

How can i change "127.0.0.1:5000" by "mylocalip:5000" ?

Blockshell is on my linux server and I would like access to web page from my windows client.

thanks !

sreecodeslayer commented 6 years ago

For that, it is better to serve the Flask server behind Nginx/Apache using Gunicorn or uWSGI bound to 0.0.0.0:5000 and then use your Linux server's IP to access the web page.

If you are on the same network, you could add host and port to the line as app.run(host='0.0.0.0', port=5000, debug=True), and then access the page over 192.168.xx.xx or what ever your internal IP is.

smitthakkar96 commented 6 years ago

Maybe add a flag that can allow to specify port and host

smitthakkar96 commented 6 years ago

@daxeel you never close issue with confirming from the issue creator unless inactive

daxeel commented 6 years ago

@smitthakkar96 Yes, you are absolutely correct. @sreecodeslayer explained about the issue thats why i thought that issue may be solved. By the way, I apologize for this action. Re-opening.