blockshell icon indicating copy to clipboard operation
blockshell copied to clipboard

Change 127.0.0.1 by server ip

Open hugoforat opened this issue 7 years ago • 4 comments

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 !

hugoforat avatar Jan 30 '18 15:01 hugoforat

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.

sreecodeslayer avatar Jan 31 '18 03:01 sreecodeslayer

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

smitthakkar96 avatar Jan 31 '18 07:01 smitthakkar96

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

smitthakkar96 avatar Feb 01 '18 04:02 smitthakkar96

@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.

daxeel avatar Feb 01 '18 05:02 daxeel