Skip to content
← Back to Community
Python Socket - Hmmmm.... We Couldn't Reach Your Repl
Profile icon
AtharvGoel

I am learning how to use sockets with python. My socket was able to connect, but the repl.co says - Hmmmm.... We Couldn't Reach Your Repl. I don't know what I'm doing wrong. Can someone please help me.
Here's my repl - https://repl.it/@AtharvGoel/ServerTest

Voters
Profile icon
AtharvGoel
Comments
hotnewtop
Profile icon
Coder100

Hello, you currently have no web server, your code only connects to the socket port, but there is no web server being made. You will have to create one with flask.

Profile icon
AtharvGoel

@Coder100 So I can get it to work by using flask to create a web server?

Profile icon
CodeLongAndPros

You need a web server for the preview to work.

Profile icon
PattanAhmed

@AtharvGoel Hi,
But it says Socket created successfully.
and the main thing it's from your code.
That means it has imported Socket successfully to your file.

01

You need to have a Web Server. If you don't have then you have to create one. You can create one with Flask
Thanks!

Hope this helps

Profile icon
AtharvGoel

@PattanAhmed The code is supposed to say - I'm the message from the server. I don't exactly know where it will show up but I assumed it would be in the repl.co.

Profile icon
PattanAhmed

@AtharvGoel Do you have Web Server?

Profile icon
AtharvGoel

@PattanAhmed If you mean something like example.com, I do not.

Profile icon
AtharvGoel

@PattanAhmed My goal is to have two repls communicate with each other basically. Type in one and it will show in the other and vice versa.

Profile icon
PattanAhmed

@AtharvGoel Oh...
It's not possible till now...
But you can always feel free to give them a feedback from Repl.it Feedback Section
Click here
That's it

Hope this helps

Profile icon
Coder100

it's not a bug, he explicitly did not create a server, so that is an expected result @PattanAhmed

Profile icon
PattanAhmed

@Coder100 OH!!
I am not that expert like you LoL!
Correct me if I am wrong dude.
Thanks!

I am gonna edit that post.

Profile icon
PattanAhmed

@AtharvGoel No, I mean with Flask
Not with example.com

Profile icon
AtharvGoel

@PattanAhmed So how would I do this. I created this - https://repl.it/@AtharvGoel/FlaskTest - but what do I do from here?