Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change 127.0.0.1 by server ip #8

Open
hugoforat opened this issue Jan 30, 2018 · 4 comments
Open

Change 127.0.0.1 by server ip #8

hugoforat opened this issue Jan 30, 2018 · 4 comments

Comments

@hugoforat
Copy link

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
Copy link

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
Copy link

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

@daxeel daxeel closed this as completed Feb 1, 2018
@smitthakkar96
Copy link

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

@daxeel
Copy link
Owner

daxeel commented Feb 1, 2018

@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 daxeel reopened this Feb 1, 2018
@agentcobra agentcobra mentioned this issue Feb 1, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants