Why can't i access my repl.it Flask server from another browser tab?
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.
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.
@RYANTADIPARTHI Thanks but that could not help because in any way, the browser would fetch the same url and so, the same content.
@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.
@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?
@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.
@KHZ OK Thanks!