Skip to content
← Back to Community
Why can't i access my repl.it Flask server from another browser tab?
Profile icon
Nalin2005

I have made a basic Flask app which is a very basic and simple web server.

When i enter python main.py in the browser shell, the webserver starts and the console starts outputting the text that it usually does, so, i can be assured that the server is running.

Also, when i run the server, the repl.it website tab also opens a small windows which shows the website correctly, which shows that the web server is running.

But when i visit the same url on another tab of the same browser, i cannot access the website and it is showing that "xxx.xxx.repl.co took too long to respond".

Please help.

Answered by KHZ [earned 5 cycles]
View Answer
Voters
Profile icon
DimieshiaLoper
Profile icon
LucasPulley
Profile icon
MarcosVargas6
Profile icon
dawitzeneb
Profile icon
ShaniyaWydman
Profile icon
mauricepurnell1
Profile icon
JeremiahCarson
Profile icon
DavidSandoval10
Profile icon
JesusConcepcion
Profile icon
Nalin2005
Comments
hotnewtop
Profile icon
KHZ

@Nalin2005 First of all I think the repl you linked is private so I don't think we can see it and I think the same the problem you mentioned is also linked to the repl being private.

Profile icon
Nalin2005

@KHZ Thanks friend it worked! Converting my repl to public was the solution. But can i please know why it worked inside the editor tab?

Profile icon
KHZ

@Nalin2005 That I myself don't know. I just had a gut feeling. Maybe it has something to the with the repl being private that repl doesn't allow any third party to access it in any way.

Profile icon
Nalin2005

@KHZ OK Thanks!

Profile icon
RYANTADIPARTHI

There is an option to open in new tab.You don't need to paste anything. repl does it for you. Just click it, and it opens in a new tab. with the link.

Profile icon
Nalin2005

@RYANTADIPARTHI Thanks but that could not help because in any way, the browser would fetch the same url and so, the same content.