Ask coding questions

← Back to all posts
When can socket be used? (python)
isaiah08

I have a few questions about socket.

  • Do client-server interactions work only on the same network?
  • I tried to run my chat app on repl.it, and I could log on fine when the server was running but on another device it thought the server wasn't up. Why is this?
    Thank you!
Voters
isaiah08
Comments
hotnewtop
VulcanWM

Socket doesn’t work in replit
Try using socket.io because I’ve heard that works

isaiah08

Thanks, but I'm really wondering whether the server-client connections can happen on separate devices, and what the IP needs to be configured to to have that work. @VulcanWM

VulcanWM

Oh I don’t know that sorry @isaiah08