adafruit / adafruit/Pi_Internet_Thing_Videos
Cannot listen open to the port on Chrome
- Dominant language
- JavaScript
- Stars
- 44
- Forks
- 17
- PR merge metrics
- No merged PRs in 30d
Description
Tony,
Following your tutorial I've ran into an error for some reason I cannot seem to get the webpage to open to the port specified on the main.py (which was 5000 by default)
The odd thing is that I can open up to http://raspberrypi:5000/ using Midori on the raspberry pi but not on my Mac. I've tried to change the port to 8000 to see is this port issue could be resolved but it is not woking any pointers to solve the problem would be great.
Here's the code used:
`from flask import Flask
app = Flask(**name**)
@app.route("/")
def hello():
return "Hello World!"
if **name** == "**main**":
app.run(host='0.0.0.0', debug= True)`
-Nemesis
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with the Flask application in main.py and verify how the Raspberry Pi exposes the configured port to other devices. Reproduce the access attempt from the Mac using the ports mentioned in the issue; done means the webpage opens from the Mac at the configured port.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- flask, python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100