Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python Build a Social Network with Flask Takin' Names Macros

Oti Oritsejafor
Oti Oritsejafor
3,281 Points

My app runs but when I put the port in the browser it gives me an error

It gives me the error " This site can’t be reached

The webpage at http://0.0.0.0:8000/register might be temporarily down or it may have moved permanently to a new web address. ERR_ADDRESS_INVALID "

2 Answers

Oti Oritsejafor
Oti Oritsejafor
3,281 Points

I couldn't get this to work and never received any help on this from treehouse/treehouse community, sadly. But if you know the answer, that'd be great!

Michal Janek
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Michal Janek
Front End Web Development Techdegree Graduate 30,654 Points

I have figured out my problem and that was that I had a virtual machine going on which was occupying the port which I was trying to set flask on. After turning off the machine I could run local.host:PORTNUMBER just fine. But I assume there are different scenarios when this problem happens so mine was this.

Michal Janek
seal-mask
.a{fill-rule:evenodd;}techdegree seal-36
Michal Janek
Front End Web Development Techdegree Graduate 30,654 Points

I have figured out my problem and that was that I had a virtual machine going on which was occupying the port which I was trying to set flask on. After turning off the virtual machine I could run local.host:PORTNUMBER just fine. But I assume there are different scenarios when this problem happens so mine was this.

So my guess would be that you something is occupying that port.