Skip to content
← Back to Community
Are sockets availible in repl.it?
Profile icon
h
has Hacker Plan
A2Pro

Are sockets available in repl.it? I want to try connecting to one repl from a different one but this error shows up: ConnectionRefusedError : [Errno 111] Connection refused.

Voters
Profile icon
DynamicSquid
Profile icon
A2Pro
Comments
hotnewtop
Profile icon
Saibot84

Great question, @CreateAWebsite!

Yes, websockets are available. Try using

HOST=''

or

HOST='0.0.0.0'

instead of

HOST='127.0.0.1'
Profile icon
A2Pro

@Saibot84 thanks a lot

Profile icon
Coder100

Given your server is on example.user.repl.co, just connect it like something like:

HOST = 'https://example.user.repl.co' PORT = x d = d+" " with socket.socket(socket.AF_INET, socket.SOCK_STREAM) as s: s.bind((HOST, PORT)) s.listen() conn, addr = s.accept()