Skip to content
← Back to Community
Http not working?
Profile icon
h
has Hacker Plan
realTronsi

EDIT: This is no longer relevant as I am moving to vscode

I'm trying to make a simple multiplayer game using node js. I configured the server but it keeps giving me the error message: Make sure your repl has a port open and is ready to receive HTTP traffic.

Whenever I create a brand new repl and paste the same exact code in, the http will work for about 1 hour before giving me the same error msg again.

Thanks for the help

https://repl.it/@realTronsi/shooter#index.js

Voters
Profile icon
realTronsi
Comments
hotnewtop
Profile icon
seanlnge

One reason this might be happening is because you are listening on 2 different ports: 8080 and 3000.
You also already have an express server running with your port 3000, so there is no reason to have an http server setup

Profile icon
realTronsi

@SpicedSpices I need the http server for websockets though. Also whenever I make a brand new repl, the code works for about 1 hour before it breaks again, which means its most likely not a port problem.

Profile icon
Coder100

Hello, most likely there has been an error that has occurred, either losing memory or an error inside the code. Anyways, the code doesn't load for me... I'll look at it and tell you about any errors.