Simple flask server running on windows machine and static IP invisible outsideConfigure Flask dev server to be visible across the networkHow to serve static files in FlaskError processing Json requestFlask with mod_wsgi - Cannot call my modulesMultithreaded Flask application on Apache serverFlask POSTs with Trailing SlashMaking use of CherryPy as webserver for flask applicationHow can I run an app script python in django (hosted in a2hosting)?How to change Flask server host/port using config file?The debugger caught an exception in your WSGI application
How might people try to stop the world becoming a rogue planet?
Intuition behind the paradox of instantaneous heat propagation
Can tankless & conventional water heaters join forces?
Why did the police not show up at Brett's apartment during the shootout?
What techniques can I use to seduce a PC without arousing suspicion of ulterior motives?
Proof that if covariance is zero then there is no linear relationship
Can a planet's magnetic field be generated by non-ferromagnetic metals?
Does animal blood, esp. human, really have similar salinity as ocean water, and does that prove anything about evolution?
Tips for attracting more math majors in a liberal arts college mathematics department
How does AT-AT deploy troops?
My bike's adjustable stem keeps falling down
Is it bizarre that a professor asks every student for a 3 inch by 5 inch photograph?
Hell0 W0rld! scored by ASCII values
Why did the Government cancel the Brexit-deal vote today?
We know someone is scrying on us. Is there anything we can do about it?
Can I still travel on the Troika Card even if it goes into a negative balance?
What does “studies need to be taken with more than the usual grain of salt” mean?
In Cura, can I make my top and bottom layer be all perimiters?
What is a word for the feeling of constantly wanting new possessions?
How do I figure out how many hydrogens my compound actually has using a mass and NMR spectrum?
Why are my plastic credit card and activation code sent separately?
I am particularly fascinated by the Chinese character that is pronounced SHIN & means faith or belief
Why did the people of Zion never find evidence of the previous cycles?
Create a program that prints the amount of characters it has, in words
Simple flask server running on windows machine and static IP invisible outside
Configure Flask dev server to be visible across the networkHow to serve static files in FlaskError processing Json requestFlask with mod_wsgi - Cannot call my modulesMultithreaded Flask application on Apache serverFlask POSTs with Trailing SlashMaking use of CherryPy as webserver for flask applicationHow can I run an app script python in django (hosted in a2hosting)?How to change Flask server host/port using config file?The debugger caught an exception in your WSGI application
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I just ran this simple python code to start a server on my windows 10 Pro laptop. In case it's important, I'm doing it from Jupyter Notebook
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello World!'
if __name__ == '__main__':
app.run(host='0.0.0.0')
If I go to localhost:5000
on my browser, I see 'Hello World'
. Note that I am assigned a static IP address. If I now go to XX.XXX.XX.XXX:5000 (XX.XXX.XX.XXX is my static IP) from another computer -- my cell phone, I can't find any content. I am not running the code debug mode and I even turned off the firewall, but nothing. Can any of you please tell me what I am doing wrong? Thanks very much in advance
python flask windows-10
|
show 1 more comment
I just ran this simple python code to start a server on my windows 10 Pro laptop. In case it's important, I'm doing it from Jupyter Notebook
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello World!'
if __name__ == '__main__':
app.run(host='0.0.0.0')
If I go to localhost:5000
on my browser, I see 'Hello World'
. Note that I am assigned a static IP address. If I now go to XX.XXX.XX.XXX:5000 (XX.XXX.XX.XXX is my static IP) from another computer -- my cell phone, I can't find any content. I am not running the code debug mode and I even turned off the firewall, but nothing. Can any of you please tell me what I am doing wrong? Thanks very much in advance
python flask windows-10
did you do the port forwarding? 5000 to 5000.
– OzgurBagci
Mar 28 at 21:45
how you're running your app?
– geckos
Mar 28 at 21:52
When entering your static IP on your computer, is this working ?
– Bachrc
Mar 28 at 22:07
I did not do the forwarding. Can you please send me a link to it? If I enter my IP it sends me to the NBG-418N v2 Embedded WEB Configurator
– edd
Mar 29 at 6:40
The static IP address belongs to your router, not to your computer. The router assigns your computer an internal, local IP address. So, you need to configure port forwarding in your router to forward the incoming traffic to your computer.
– xyres
Mar 29 at 8:06
|
show 1 more comment
I just ran this simple python code to start a server on my windows 10 Pro laptop. In case it's important, I'm doing it from Jupyter Notebook
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello World!'
if __name__ == '__main__':
app.run(host='0.0.0.0')
If I go to localhost:5000
on my browser, I see 'Hello World'
. Note that I am assigned a static IP address. If I now go to XX.XXX.XX.XXX:5000 (XX.XXX.XX.XXX is my static IP) from another computer -- my cell phone, I can't find any content. I am not running the code debug mode and I even turned off the firewall, but nothing. Can any of you please tell me what I am doing wrong? Thanks very much in advance
python flask windows-10
I just ran this simple python code to start a server on my windows 10 Pro laptop. In case it's important, I'm doing it from Jupyter Notebook
from flask import Flask
app = Flask(__name__)
@app.route('/')
def hello_world():
return 'Hello World!'
if __name__ == '__main__':
app.run(host='0.0.0.0')
If I go to localhost:5000
on my browser, I see 'Hello World'
. Note that I am assigned a static IP address. If I now go to XX.XXX.XX.XXX:5000 (XX.XXX.XX.XXX is my static IP) from another computer -- my cell phone, I can't find any content. I am not running the code debug mode and I even turned off the firewall, but nothing. Can any of you please tell me what I am doing wrong? Thanks very much in advance
python flask windows-10
python flask windows-10
asked Mar 28 at 21:36
eddedd
3062 gold badges4 silver badges21 bronze badges
3062 gold badges4 silver badges21 bronze badges
did you do the port forwarding? 5000 to 5000.
– OzgurBagci
Mar 28 at 21:45
how you're running your app?
– geckos
Mar 28 at 21:52
When entering your static IP on your computer, is this working ?
– Bachrc
Mar 28 at 22:07
I did not do the forwarding. Can you please send me a link to it? If I enter my IP it sends me to the NBG-418N v2 Embedded WEB Configurator
– edd
Mar 29 at 6:40
The static IP address belongs to your router, not to your computer. The router assigns your computer an internal, local IP address. So, you need to configure port forwarding in your router to forward the incoming traffic to your computer.
– xyres
Mar 29 at 8:06
|
show 1 more comment
did you do the port forwarding? 5000 to 5000.
– OzgurBagci
Mar 28 at 21:45
how you're running your app?
– geckos
Mar 28 at 21:52
When entering your static IP on your computer, is this working ?
– Bachrc
Mar 28 at 22:07
I did not do the forwarding. Can you please send me a link to it? If I enter my IP it sends me to the NBG-418N v2 Embedded WEB Configurator
– edd
Mar 29 at 6:40
The static IP address belongs to your router, not to your computer. The router assigns your computer an internal, local IP address. So, you need to configure port forwarding in your router to forward the incoming traffic to your computer.
– xyres
Mar 29 at 8:06
did you do the port forwarding? 5000 to 5000.
– OzgurBagci
Mar 28 at 21:45
did you do the port forwarding? 5000 to 5000.
– OzgurBagci
Mar 28 at 21:45
how you're running your app?
– geckos
Mar 28 at 21:52
how you're running your app?
– geckos
Mar 28 at 21:52
When entering your static IP on your computer, is this working ?
– Bachrc
Mar 28 at 22:07
When entering your static IP on your computer, is this working ?
– Bachrc
Mar 28 at 22:07
I did not do the forwarding. Can you please send me a link to it? If I enter my IP it sends me to the NBG-418N v2 Embedded WEB Configurator
– edd
Mar 29 at 6:40
I did not do the forwarding. Can you please send me a link to it? If I enter my IP it sends me to the NBG-418N v2 Embedded WEB Configurator
– edd
Mar 29 at 6:40
The static IP address belongs to your router, not to your computer. The router assigns your computer an internal, local IP address. So, you need to configure port forwarding in your router to forward the incoming traffic to your computer.
– xyres
Mar 29 at 8:06
The static IP address belongs to your router, not to your computer. The router assigns your computer an internal, local IP address. So, you need to configure port forwarding in your router to forward the incoming traffic to your computer.
– xyres
Mar 29 at 8:06
|
show 1 more comment
1 Answer
1
active
oldest
votes
I had a similar issue today and solved it by doing the following:
- You need to get the ip address of your machine. On windows you can get it using the command 'ipconfig' in the cmd.
- Ensure your host = 0.0.0.0 in the flask app (which it does from looking at your code)
- Run the flask server and then open the browser on your mobile. Now enter the IP of your machine followed by the port your server is running from and you should be set. (example: 192.168.x.xx:5000/)
add a comment
|
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55407221%2fsimple-flask-server-running-on-windows-machine-and-static-ip-invisible-outside%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I had a similar issue today and solved it by doing the following:
- You need to get the ip address of your machine. On windows you can get it using the command 'ipconfig' in the cmd.
- Ensure your host = 0.0.0.0 in the flask app (which it does from looking at your code)
- Run the flask server and then open the browser on your mobile. Now enter the IP of your machine followed by the port your server is running from and you should be set. (example: 192.168.x.xx:5000/)
add a comment
|
I had a similar issue today and solved it by doing the following:
- You need to get the ip address of your machine. On windows you can get it using the command 'ipconfig' in the cmd.
- Ensure your host = 0.0.0.0 in the flask app (which it does from looking at your code)
- Run the flask server and then open the browser on your mobile. Now enter the IP of your machine followed by the port your server is running from and you should be set. (example: 192.168.x.xx:5000/)
add a comment
|
I had a similar issue today and solved it by doing the following:
- You need to get the ip address of your machine. On windows you can get it using the command 'ipconfig' in the cmd.
- Ensure your host = 0.0.0.0 in the flask app (which it does from looking at your code)
- Run the flask server and then open the browser on your mobile. Now enter the IP of your machine followed by the port your server is running from and you should be set. (example: 192.168.x.xx:5000/)
I had a similar issue today and solved it by doing the following:
- You need to get the ip address of your machine. On windows you can get it using the command 'ipconfig' in the cmd.
- Ensure your host = 0.0.0.0 in the flask app (which it does from looking at your code)
- Run the flask server and then open the browser on your mobile. Now enter the IP of your machine followed by the port your server is running from and you should be set. (example: 192.168.x.xx:5000/)
answered Mar 29 at 23:53
DuveoDitDuveoDit
13 bronze badges
13 bronze badges
add a comment
|
add a comment
|
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55407221%2fsimple-flask-server-running-on-windows-machine-and-static-ip-invisible-outside%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
did you do the port forwarding? 5000 to 5000.
– OzgurBagci
Mar 28 at 21:45
how you're running your app?
– geckos
Mar 28 at 21:52
When entering your static IP on your computer, is this working ?
– Bachrc
Mar 28 at 22:07
I did not do the forwarding. Can you please send me a link to it? If I enter my IP it sends me to the NBG-418N v2 Embedded WEB Configurator
– edd
Mar 29 at 6:40
The static IP address belongs to your router, not to your computer. The router assigns your computer an internal, local IP address. So, you need to configure port forwarding in your router to forward the incoming traffic to your computer.
– xyres
Mar 29 at 8:06